summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-06-03 08:06:58 +0000
committerrubidium <rubidium@openttd.org>2008-06-03 08:06:58 +0000
commit1ddfdda02c4c1dea425b026bc0d273daacade2ee (patch)
tree61aa470715ee535a0744b1421979ab51a573ec9d /src
parentabf2b0efc36e09caac75ad777af6842a16b66d22 (diff)
downloadopenttd-1ddfdda02c4c1dea425b026bc0d273daacade2ee.tar.xz
(svn r13370) -Codechange: move the VARDEF stuff from openttd.h to variables.h so one doesn't need to include openttd.h before variables.h.
Diffstat (limited to 'src')
-rw-r--r--src/network/network_internal.h2
-rw-r--r--src/openttd.h4
-rw-r--r--src/variables.h4
3 files changed, 4 insertions, 6 deletions
diff --git a/src/network/network_internal.h b/src/network/network_internal.h
index 4ed6141e0..dd6b401c3 100644
--- a/src/network/network_internal.h
+++ b/src/network/network_internal.h
@@ -93,8 +93,6 @@ enum NetworkLanguage {
NETLANG_COUNT
};
-#define VARDEF extern
-
extern NetworkPlayerInfo _network_player_info[MAX_PLAYERS];
extern uint32 _frame_counter_server; // The frame_counter of the server, if in network-mode
diff --git a/src/openttd.h b/src/openttd.h
index 7f61ca62e..44a39893d 100644
--- a/src/openttd.h
+++ b/src/openttd.h
@@ -5,10 +5,6 @@
#ifndef OPENTTD_H
#define OPENTTD_H
-#ifndef VARDEF
-#define VARDEF extern
-#endif
-
enum GameModes {
GM_MENU,
GM_NORMAL,
diff --git a/src/variables.h b/src/variables.h
index 3091fefc2..0304195f2 100644
--- a/src/variables.h
+++ b/src/variables.h
@@ -5,6 +5,10 @@
#ifndef VARIABLES_H
#define VARIABLES_H
+#ifndef VARDEF
+#define VARDEF extern
+#endif
+
/* Amount of game ticks */
VARDEF uint16 _tick_counter;