265 _cur_month = ymd.month; |
266 _cur_month = ymd.month; |
266 |
267 |
267 /* yes, call various monthly loops */ |
268 /* yes, call various monthly loops */ |
268 if (_game_mode != GM_MENU) { |
269 if (_game_mode != GM_MENU) { |
269 #ifdef DEBUG_DUMP_COMMANDS |
270 #ifdef DEBUG_DUMP_COMMANDS |
|
271 std::map<TownID, uint32> town_pop; |
|
272 for (TileIndex t = 0; t < MapSize(); t++) { |
|
273 if (GetTileType(t) == MP_HOUSE && IsHouseCompleted(t)) { |
|
274 uint32 pop = GetHouseSpecs(GetHouseType(t))->population; |
|
275 town_pop[GetTownIndex(t)] += pop; |
|
276 } |
|
277 } |
|
278 |
|
279 Town *t; |
|
280 FOR_ALL_TOWNS(t) assert(t->population == town_pop[t->index]); |
|
281 |
270 char name[MAX_PATH]; |
282 char name[MAX_PATH]; |
271 snprintf(name, lengthof(name), "dmp_cmds_%d.sav", _date); |
283 snprintf(name, lengthof(name), "dmp_cmds_%d.sav", _date); |
272 SaveOrLoad(name, SL_SAVE, AUTOSAVE_DIR); |
284 SaveOrLoad(name, SL_SAVE, AUTOSAVE_DIR); |
273 debug_dump_commands("ddc:save:%s\n", name); |
285 debug_dump_commands("ddc:save:%s\n", name); |
274 #endif /* DUMP_COMMANDS */ |
286 #endif /* DUMP_COMMANDS */ |