mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-16 19:19:09 +00:00
(svn r2817) -Codechange: [autoreplace]: moved autoreplace and autorenew to serverside
-This means that one company can only have one setting for renew and replacing more clients will not fight due to different settings anymore -This is a needed step in the line to fix autoreplacing dualheaded locomotives NOTE: savegame revision bump (peter1138 + me in coop)
This commit is contained in:
6
misc.c
6
misc.c
@@ -122,14 +122,8 @@ void ConvertGroundTilesIntoWaterTiles(void);
|
||||
|
||||
void InitializeGame(uint size_x, uint size_y)
|
||||
{
|
||||
uint i;
|
||||
|
||||
AllocateMap(size_x, size_y);
|
||||
|
||||
// Initialize the autoreplace array. Needs to be cleared between each game
|
||||
for (i = 0; i < lengthof(_autoreplace_array); i++)
|
||||
_autoreplace_array[i] = i;
|
||||
|
||||
AddTypeToEngines(); // make sure all engines have a type
|
||||
|
||||
SetObjectToPlace(SPR_CURSOR_ZZZ, 0, 0, 0);
|
||||
|
Reference in New Issue
Block a user