mirror of https://github.com/OpenTTD/OpenTTD
(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.
parent
abf2b0efc3
commit
1ddfdda02c
|
@ -93,8 +93,6 @@ enum NetworkLanguage {
|
||||||
NETLANG_COUNT
|
NETLANG_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
#define VARDEF extern
|
|
||||||
|
|
||||||
extern NetworkPlayerInfo _network_player_info[MAX_PLAYERS];
|
extern NetworkPlayerInfo _network_player_info[MAX_PLAYERS];
|
||||||
|
|
||||||
extern uint32 _frame_counter_server; // The frame_counter of the server, if in network-mode
|
extern uint32 _frame_counter_server; // The frame_counter of the server, if in network-mode
|
||||||
|
|
|
@ -5,10 +5,6 @@
|
||||||
#ifndef OPENTTD_H
|
#ifndef OPENTTD_H
|
||||||
#define OPENTTD_H
|
#define OPENTTD_H
|
||||||
|
|
||||||
#ifndef VARDEF
|
|
||||||
#define VARDEF extern
|
|
||||||
#endif
|
|
||||||
|
|
||||||
enum GameModes {
|
enum GameModes {
|
||||||
GM_MENU,
|
GM_MENU,
|
||||||
GM_NORMAL,
|
GM_NORMAL,
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
#ifndef VARIABLES_H
|
#ifndef VARIABLES_H
|
||||||
#define VARIABLES_H
|
#define VARIABLES_H
|
||||||
|
|
||||||
|
#ifndef VARDEF
|
||||||
|
#define VARDEF extern
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Amount of game ticks */
|
/* Amount of game ticks */
|
||||||
VARDEF uint16 _tick_counter;
|
VARDEF uint16 _tick_counter;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue