diff options
author | smatz <smatz@openttd.org> | 2009-05-16 23:34:14 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-16 23:34:14 +0000 |
commit | 6221d74644922ea4bbba3ed9cd8bbec42398f77b (patch) | |
tree | 0069bbd6bb7525754c5d9353132f5dc64a0996cc /src/highscore_gui.cpp | |
parent | 814f153b5a98e0030cbd221e6a89e083ce62bb1d (diff) | |
download | openttd-6221d74644922ea4bbba3ed9cd8bbec42398f77b.tar.xz |
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
Diffstat (limited to 'src/highscore_gui.cpp')
-rw-r--r-- | src/highscore_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/highscore_gui.cpp b/src/highscore_gui.cpp index cfe81ce15..2b0917b6f 100644 --- a/src/highscore_gui.cpp +++ b/src/highscore_gui.cpp @@ -59,7 +59,7 @@ struct EndGameWindow : EndGameHighScoreBaseWindow { this->background_img = SPR_TYCOON_IMG1_BEGIN; if (_local_company != COMPANY_SPECTATOR) { - const Company *c = GetCompany(_local_company); + const Company *c = Company::Get(_local_company); if (c->old_economy[0].performance_history == SCORE_MAX) { this->background_img = SPR_TYCOON_IMG2_BEGIN; } @@ -72,7 +72,7 @@ struct EndGameWindow : EndGameHighScoreBaseWindow { this->rank = SaveHighScoreValueNetwork(); } else { /* in single player _local company is always valid */ - const Company *c = GetCompany(_local_company); + const Company *c = Company::Get(_local_company); this->window_number = _settings_game.difficulty.diff_level; this->rank = SaveHighScoreValue(c); } @@ -95,7 +95,7 @@ struct EndGameWindow : EndGameHighScoreBaseWindow { if (!IsValidCompanyID(_local_company)) return; - c = GetCompany(_local_company); + c = Company::Get(_local_company); /* We need to get performance from last year because the image is shown * at the start of the new year when these things have already been copied */ if (this->background_img == SPR_TYCOON_IMG2_BEGIN) { // Tycoon of the century \o/ |