mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r22129) -Codechange: use simpler check to test if there any towns in the game
This commit is contained in:
parent
b322714e55
commit
c7aebed03e
@ -682,7 +682,7 @@ bool AfterLoadGame()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* make sure there is a town in the game */
|
/* make sure there is a town in the game */
|
||||||
if (_game_mode == GM_NORMAL && !ClosestTownFromTile(0, UINT_MAX)) {
|
if (_game_mode == GM_NORMAL && Town::GetNumItems() == 0) {
|
||||||
SetSaveLoadError(STR_ERROR_NO_TOWN_IN_SCENARIO);
|
SetSaveLoadError(STR_ERROR_NO_TOWN_IN_SCENARIO);
|
||||||
/* Restore the signals */
|
/* Restore the signals */
|
||||||
ResetSignalHandlers();
|
ResetSignalHandlers();
|
||||||
|
Loading…
Reference in New Issue
Block a user