summaryrefslogtreecommitdiff
path: root/src/date.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/date.cpp')
-rw-r--r--src/date.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/date.cpp b/src/date.cpp
index 0e56000ef..e71ddd7c9 100644
--- a/src/date.cpp
+++ b/src/date.cpp
@@ -17,7 +17,6 @@
#include "debug.h"
#ifdef DEBUG_DUMP_COMMANDS
#include "saveload.h"
-#include "town_map.h"
#endif
Year _cur_year;
@@ -270,17 +269,6 @@ void IncreaseDate()
/* yes, call various monthly loops */
if (_game_mode != GM_MENU) {
#ifdef DEBUG_DUMP_COMMANDS
- std::map<TownID, uint32> town_pop;
- for (TileIndex t = 0; t < MapSize(); t++) {
- if (GetTileType(t) == MP_HOUSE && IsHouseCompleted(t)) {
- uint32 pop = GetHouseSpecs(GetHouseType(t))->population;
- town_pop[GetTownIndex(t)] += pop;
- }
- }
-
- Town *t;
- FOR_ALL_TOWNS(t) assert(t->population == town_pop[t->index]);
-
char name[MAX_PATH];
snprintf(name, lengthof(name), "dmp_cmds_%d.sav", _date);
SaveOrLoad(name, SL_SAVE, AUTOSAVE_DIR);