@@ -177,7 +177,7 @@ const std::map<Difficulty, int> MapViewState::ColonyShipDeorbitMoraleLossMultipl
177
177
178
178
MapViewState::MapViewState (MainReportsUiState& mainReportsState, const std::string& savegame) :
179
179
mCrimeRateUpdate{mDifficulty },
180
- mCrimeExecution {mDifficulty },
180
+ mCrimeExecution {mDifficulty , { this , &MapViewState::onCrimeEvent} },
181
181
mTechnologyReader {" tech0-1.xml" },
182
182
mLoadingExisting {true },
183
183
mExistingToLoad {savegame},
@@ -191,15 +191,14 @@ MapViewState::MapViewState(MainReportsUiState& mainReportsState, const std::stri
191
191
{
192
192
ccLocation () = CcNotPlaced;
193
193
NAS2D::Utility<NAS2D::EventHandler>::get ().windowResized ().connect ({this , &MapViewState::onWindowResized});
194
- mCrimeExecution .crimeEventSignal ().connect ({this , &MapViewState::onCrimeEvent});
195
194
}
196
195
197
196
198
197
MapViewState::MapViewState (MainReportsUiState& mainReportsState, const Planet::Attributes& planetAttributes, Difficulty selectedDifficulty) :
199
198
mDifficulty{selectedDifficulty},
200
199
mTileMap {std::make_unique<TileMap>(planetAttributes.mapImagePath , planetAttributes.maxDepth , planetAttributes.maxMines , HostilityMineYields.at (planetAttributes.hostility ))},
201
200
mCrimeRateUpdate {mDifficulty },
202
- mCrimeExecution {mDifficulty },
201
+ mCrimeExecution {mDifficulty , { this , &MapViewState::onCrimeEvent} },
203
202
mTechnologyReader {" tech0-1.xml" },
204
203
mPlanetAttributes {planetAttributes},
205
204
mMainReportsState {mainReportsState},
@@ -218,7 +217,6 @@ MapViewState::MapViewState(MainReportsUiState& mainReportsState, const Planet::A
218
217
setMeanSolarDistance (mPlanetAttributes .meanSolarDistance );
219
218
ccLocation () = CcNotPlaced;
220
219
NAS2D::Utility<NAS2D::EventHandler>::get ().windowResized ().connect ({this , &MapViewState::onWindowResized});
221
- mCrimeExecution .crimeEventSignal ().connect ({this , &MapViewState::onCrimeEvent});
222
220
}
223
221
224
222
0 commit comments