equal
deleted
inserted
replaced
7 #include "assert.h" |
7 #include "assert.h" |
8 #include "saveload.h" |
8 #include "saveload.h" |
9 #include "network.h" |
9 #include "network.h" |
10 #include "network_data.h" |
10 #include "network_data.h" |
11 #include "network_server.h" |
11 #include "network_server.h" |
|
12 #include "engine.h" |
12 |
13 |
13 extern void StartupEconomy(); |
14 extern void StartupEconomy(); |
14 extern void InitNewsItemStructs(); |
15 extern void InitNewsItemStructs(); |
15 |
16 |
16 byte _name_array[512][32]; |
17 byte _name_array[512][32]; |
180 |
181 |
181 void ConvertGroundTilesIntoWaterTiles(); |
182 void ConvertGroundTilesIntoWaterTiles(); |
182 |
183 |
183 void InitializeGame() |
184 void InitializeGame() |
184 { |
185 { |
|
186 // Initialize the autoreplace array. Needs to be cleared between each game |
|
187 int i; |
|
188 for (i = 0; i < 256; i++) { |
|
189 _autoreplace_array[i] = i; |
|
190 } |
|
191 AddTypeToEngines(); // make sure all engines have a type |
|
192 |
185 SetObjectToPlace(1, 0, 0, 0); |
193 SetObjectToPlace(1, 0, 0, 0); |
186 |
194 |
187 _pause = 0; |
195 _pause = 0; |
188 _fast_forward = 0; |
196 _fast_forward = 0; |
189 _tick_counter = 0; |
197 _tick_counter = 0; |