(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)
This commit is contained in:
2
misc.c
2
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();
|
||||
|
||||
Reference in New Issue
Block a user