1
0
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:
bjarni
2005-08-06 16:07:22 +00:00
parent ddb58492f3
commit ed8e2bac04
14 changed files with 234 additions and 75 deletions

6
misc.c
View File

@@ -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);