equal
deleted
inserted
replaced
120 |
120 |
121 void ConvertGroundTilesIntoWaterTiles(void); |
121 void ConvertGroundTilesIntoWaterTiles(void); |
122 |
122 |
123 void InitializeGame(uint size_x, uint size_y) |
123 void InitializeGame(uint size_x, uint size_y) |
124 { |
124 { |
125 uint i; |
|
126 |
|
127 AllocateMap(size_x, size_y); |
125 AllocateMap(size_x, size_y); |
128 |
|
129 // Initialize the autoreplace array. Needs to be cleared between each game |
|
130 for (i = 0; i < lengthof(_autoreplace_array); i++) |
|
131 _autoreplace_array[i] = i; |
|
132 |
126 |
133 AddTypeToEngines(); // make sure all engines have a type |
127 AddTypeToEngines(); // make sure all engines have a type |
134 |
128 |
135 SetObjectToPlace(SPR_CURSOR_ZZZ, 0, 0, 0); |
129 SetObjectToPlace(SPR_CURSOR_ZZZ, 0, 0, 0); |
136 |
130 |