265 _cur_month = ymd.month; |
265 _cur_month = ymd.month; |
266 |
266 |
267 /* yes, call various monthly loops */ |
267 /* yes, call various monthly loops */ |
268 if (_game_mode != GM_MENU) { |
268 if (_game_mode != GM_MENU) { |
269 #ifdef DEBUG_DUMP_COMMANDS |
269 #ifdef DEBUG_DUMP_COMMANDS |
270 int data[MAX_PLAYERS][TOTAL_NUM_ENGINES + 1]; |
|
271 memset(data, 0, sizeof(data)); |
|
272 |
|
273 const Vehicle *v; |
|
274 FOR_ALL_VEHICLES(v) { |
|
275 if (!IsEngineCountable(v)) continue; |
|
276 data[v->owner][v->engine_type]++; |
|
277 } |
|
278 |
|
279 for (PlayerID i = PLAYER_FIRST; i < MAX_PLAYERS; i++) { |
|
280 const Player *p = GetPlayer(i); |
|
281 if (!p->is_active) continue; |
|
282 for (int j = 0; j < TOTAL_NUM_ENGINES; j++) assert(data[i][j] == p->num_engines[j]); |
|
283 } |
|
284 |
|
285 char name[MAX_PATH]; |
270 char name[MAX_PATH]; |
286 snprintf(name, lengthof(name), "dmp_cmds_%d.sav", _date); |
271 snprintf(name, lengthof(name), "dmp_cmds_%d.sav", _date); |
287 SaveOrLoad(name, SL_SAVE, AUTOSAVE_DIR); |
272 SaveOrLoad(name, SL_SAVE, AUTOSAVE_DIR); |
288 debug_dump_commands("ddc:save:%s\n", name); |
273 debug_dump_commands("ddc:save:%s\n", name); |
289 #endif /* DUMP_COMMANDS */ |
274 #endif /* DUMP_COMMANDS */ |