Skip to content

Commit

Permalink
Fix: Use newgame ending year on highscore table when not in a game.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterN committed Dec 5, 2023
1 parent e86eb25 commit 9799337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/highscore_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ struct HighScoreWindow : EndGameHighScoreBaseWindow {
this->SetupHighScoreEndWindow();
Point pt = this->GetTopLeft(ScaleSpriteTrad(640), ScaleSpriteTrad(480));

SetDParam(0, _settings_game.game_creation.ending_year);
SetDParam(0, _game_mode == GM_NORMAL ? _settings_game.game_creation.ending_year : _settings_newgame.game_creation.ending_year);
DrawStringMultiLine(pt.x + ScaleSpriteTrad(70), pt.x + ScaleSpriteTrad(570), pt.y, pt.y + ScaleSpriteTrad(140), !_networking ? STR_HIGHSCORE_TOP_COMPANIES_WHO_REACHED : STR_HIGHSCORE_TOP_COMPANIES_NETWORK_GAME, TC_FROMSTRING, SA_CENTER);

/* Draw Highscore peepz */
Expand Down

0 comments on commit 9799337

Please sign in to comment.