File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ namespace RTE {
197
197
GameActivity *gameActivity = dynamic_cast <GameActivity *>(m_SelectedActivity->Clone ());
198
198
199
199
gameActivity->SetDifficulty (m_ActivityDifficultySlider->GetValue ());
200
- gameActivity->SetStartingGold ((m_StartingGoldSlider->GetValue () == m_StartingGoldSlider->GetMaximum ()) ? 1000000000 : m_StartingGoldSlider-> GetValue () - (m_StartingGoldSlider->GetValue () % 500 ));
200
+ gameActivity->SetStartingGold ((m_StartingGoldSlider->GetValue () == m_StartingGoldSlider->GetMaximum ()) ? 1000000000 : static_cast < int >( std::floor (m_StartingGoldSlider->GetValue ()) ));
201
201
202
202
gameActivity->SetRequireClearPathToOrbit (m_RequireClearPathToOrbitCheckbox->GetCheck ());
203
203
gameActivity->SetFogOfWarEnabled (m_FogOfWarCheckbox->GetCheck ());
You can’t perform that action at this time.
0 commit comments