diff options
author | peter1138 <peter1138@openttd.org> | 2005-11-26 16:41:14 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-11-26 16:41:14 +0000 |
commit | 87f54ebf92725c36c4ab0aa1b97fe9152e7db5c1 (patch) | |
tree | ccd73fcd302984e4abaf2d806bf28bf73a54e79f /openttd.c | |
parent | 9a381f4d5d7a575571943b94c94c27b3ae6cad2d (diff) | |
download | openttd-87f54ebf92725c36c4ab0aa1b97fe9152e7db5c1.tar.xz |
(svn r3239) - Codechange: Introduce and use helper functions for engine replacement code.
Diffstat (limited to 'openttd.c')
-rw-r--r-- | openttd.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1277,11 +1277,7 @@ bool AfterLoadGame(uint version) * of course, we do need to initialize them for older savegames. */ if (CheckSavegameVersion(16)) { FOR_ALL_PLAYERS(p) { - EngineID i; - - for (i = 0; i < TOTAL_NUM_ENGINES; i++) { - p->engine_replacement[i] = INVALID_ENGINE; - } + InitialiseEngineReplacement(p); p->engine_renew = false; p->engine_renew_months = -6; p->engine_renew_money = 100000; |