summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-01-15 00:11:28 +0000
committerglx <glx@openttd.org>2008-01-15 00:11:28 +0000
commitaf59eb2543b80e5c6feabdb888a9f8adc34679fb (patch)
tree56dbeff6f2abeb4be37ee698299557a32e945d69 /src
parent8c138523731f38af4143fc3a447ed5ee29cf5035 (diff)
downloadopenttd-af59eb2543b80e5c6feabdb888a9f8adc34679fb.tar.xz
(svn r11856) -Revert (r11772): since FS#1335 is solved, we do not need the extra checking and such anymore.
Diffstat (limited to 'src')
-rw-r--r--src/date.cpp12
-rw-r--r--src/stdafx.h1
2 files changed, 0 insertions, 13 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);
diff --git a/src/stdafx.h b/src/stdafx.h
index aed9ba36b..40e58cb8c 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -4,7 +4,6 @@
#ifndef STDAFX_H
#define STDAFX_H
-#define DEBUG_DUMP_COMMANDS
/* It seems that we need to include stdint.h before anything else
* We need INT64_MAX, which for most systems comes from stdint.h. However, MSVC