summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-01-12 15:52:18 +0000
committerpeter1138 <peter1138@openttd.org>2006-01-12 15:52:18 +0000
commit90aff7a026c8e833d78e932575995485c2da9e47 (patch)
tree2a159338918aa7b1a61fab6e18f4e28ae2b27950 /misc.c
parent28ca056d56bb716e125745c16876408527fdc278 (diff)
downloadopenttd-90aff7a026c8e833d78e932575995485c2da9e47.tar.xz
(svn r3396) - Autoreplace changes:
- Change fixed array per player to a single pool. This avoids future problems with vehicle numbers and decreases savegame size. Engine replacements from previous savegames will be lost. - Move engine replacement code from players.c to engine.c. (thanks to blathijs for rewriting this)
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 8abbc5bf8..37256f115 100644
--- a/misc.c
+++ b/misc.c
@@ -89,6 +89,7 @@ void SetDate(uint date)
void InitializeVehicles(void);
void InitializeWaypoints(void);
void InitializeDepot(void);
+void InitializeEngines(void);
void InitializeOrders(void);
void InitializeClearLand(void);
void InitializeRail(void);
@@ -142,6 +143,7 @@ void InitializeGame(int mode, uint size_x, uint size_y)
SetDate(starting);
}
+ InitializeEngines();
InitializeVehicles();
InitializeWaypoints();
InitializeDepot();