summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-09 15:17:49 +0000
committerrubidium <rubidium@openttd.org>2007-12-09 15:17:49 +0000
commit079c0fd66a4cd5b2f7db2b4dfa51bc85db8b187c (patch)
tree21657296ce5bba9e8df3e62b4546f870199247e1
parent5dc0e86d1b92b79555711ae308f2aae81fa1fb0f (diff)
downloadopenttd-079c0fd66a4cd5b2f7db2b4dfa51bc85db8b187c.tar.xz
(svn r11606) -Revert (r11584): since FS#1482 is solved, we do not need the extra checking and such anymore.
-rw-r--r--src/date.cpp15
-rw-r--r--src/stdafx.h1
2 files changed, 0 insertions, 16 deletions
diff --git a/src/date.cpp b/src/date.cpp
index 24888177b..23354cde1 100644
--- a/src/date.cpp
+++ b/src/date.cpp
@@ -267,21 +267,6 @@ void IncreaseDate()
/* yes, call various monthly loops */
if (_game_mode != GM_MENU) {
#ifdef DEBUG_DUMP_COMMANDS
- int data[MAX_PLAYERS][TOTAL_NUM_ENGINES + 1];
- memset(data, 0, sizeof(data));
-
- const Vehicle *v;
- FOR_ALL_VEHICLES(v) {
- if (!IsEngineCountable(v)) continue;
- data[v->owner][v->engine_type]++;
- }
-
- for (PlayerID i = PLAYER_FIRST; i < MAX_PLAYERS; i++) {
- const Player *p = GetPlayer(i);
- if (!p->is_active) continue;
- for (int j = 0; j < TOTAL_NUM_ENGINES; j++) assert(data[i][j] == p->num_engines[j]);
- }
-
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 a4dd583ee..34fc57ee8 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