(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.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 16 years ago
parent abf2b0efc3
commit 1ddfdda02c

@ -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

@ -5,10 +5,6 @@
#ifndef OPENTTD_H
#define OPENTTD_H
#ifndef VARDEF
#define VARDEF extern
#endif
enum GameModes {
GM_MENU,
GM_NORMAL,

@ -5,6 +5,10 @@
#ifndef VARIABLES_H
#define VARIABLES_H
#ifndef VARDEF
#define VARDEF extern
#endif
/* Amount of game ticks */
VARDEF uint16 _tick_counter;

Loading…
Cancel
Save