summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-07-19 15:51:06 +0000
committerrubidium <rubidium@openttd.org>2010-07-19 15:51:06 +0000
commit3bb544e54d45d71dee6418c5462137c67a4ea698 (patch)
tree627916f20f4a8faeeea87ad05c785bc0cea66c4d /src/saveload
parent45213e5708b3a8ece9fae32951d908db3bf5c732 (diff)
downloadopenttd-3bb544e54d45d71dee6418c5462137c67a4ea698.tar.xz
(svn r20184) -Codechange: make _trees_tick_ctr and _disaster_delay not use VARDEF and put them in a more logical location
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/misc_sl.cpp2
-rw-r--r--src/saveload/oldloader_sl.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/saveload/misc_sl.cpp b/src/saveload/misc_sl.cpp
index d53b067e9..96b1f61af 100644
--- a/src/saveload/misc_sl.cpp
+++ b/src/saveload/misc_sl.cpp
@@ -26,6 +26,8 @@
#include "saveload.h"
extern TileIndex _cur_tileloop_tile;
+extern uint16 _disaster_delay;
+extern byte _trees_tick_ctr;
/* Keep track of current game position */
int _saved_scrollpos_x;
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp
index cc49d10b8..b1789e4a2 100644
--- a/src/saveload/oldloader_sl.cpp
+++ b/src/saveload/oldloader_sl.cpp
@@ -1552,6 +1552,8 @@ static bool LoadTTDPatchExtraChunks(LoadgameState *ls, int num)
}
extern TileIndex _cur_tileloop_tile;
+extern uint16 _disaster_delay;
+extern byte _trees_tick_ctr;
static const OldChunks main_chunk[] = {
OCL_ASSERT( OC_TTD, 0 ),
OCL_ASSERT( OC_TTO, 0 ),