Changeset - r15517:a1b992dabe8c
[Not reviewed]
master
0 6 0
rubidium - 14 years ago 2010-07-19 16:21:49
rubidium@openttd.org
(svn r20186) -Codechange: remove VARDEF from _realtime_tick and _rightclick_emulate
6 files changed with 6 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/debug.cpp
Show inline comments
 
@@ -37,12 +37,13 @@ int _debug_yapf_level;
 
int _debug_freetype_level;
 
int _debug_sl_level;
 
int _debug_gamelog_level;
 
int _debug_desync_level;
 
int _debug_console_level;
 

	
 
uint32 _realtime_tick = 0;
 

	
 
struct DebugLevel {
 
	const char *name;
 
	int *level;
 
};
 

	
src/debug.h
Show inline comments
 
@@ -94,7 +94,10 @@ const char *GetDebugString();
 

	
 
void ShowInfo(const char *str);
 
void CDECL ShowInfoF(const char *str, ...) WARN_FORMAT(1, 2);
 

	
 
const char *GetLogPrefix();
 

	
 
/** The real time in the game. */
 
extern uint32 _realtime_tick;
 

	
 
#endif /* DEBUG_H */
src/driver.cpp
Show inline comments
 
@@ -18,12 +18,13 @@
 

	
 
VideoDriver *_video_driver;
 
char *_ini_videodriver;
 
int _num_resolutions;
 
Dimension _resolutions[32];
 
Dimension _cur_resolution;
 
bool _rightclick_emulate;
 

	
 
SoundDriver *_sound_driver;
 
char *_ini_sounddriver;
 

	
 
MusicDriver *_music_driver;
 
char *_ini_musicdriver;
src/misc.cpp
Show inline comments
 
@@ -63,13 +63,12 @@ void InitializeGame(uint size_x, uint si
 

	
 
	AllocateMap(size_x, size_y);
 

	
 
	_pause_mode = PM_UNPAUSED;
 
	_fast_forward = 0;
 
	_tick_counter = 0;
 
	_realtime_tick = 0;
 
	_date_fract = 0;
 
	_cur_tileloop_tile = 0;
 
	_thd.redsq = INVALID_TILE;
 
	if (reset_settings) MakeNewgameSettingsLive();
 

	
 
	InitializeSound();
src/variables.h
Show inline comments
 
@@ -16,18 +16,14 @@
 
#define VARDEF extern
 
#endif
 

	
 
/* Amount of game ticks */
 
VARDEF uint16 _tick_counter;
 

	
 
VARDEF uint32 _realtime_tick;
 

	
 
VARDEF byte _display_opt;
 

	
 
VARDEF bool _rightclick_emulate;
 

	
 
/* IN/OUT parameters to commands */
 
VARDEF bool _generating_world;
 

	
 
VARDEF char *_config_file;
 
VARDEF char *_highscore_file;
 
VARDEF char *_log_file;
src/video/video_driver.hpp
Show inline comments
 
@@ -42,8 +42,9 @@ public:
 

	
 
extern VideoDriver *_video_driver;
 
extern char *_ini_videodriver;
 
extern int _num_resolutions;
 
extern Dimension _resolutions[32];
 
extern Dimension _cur_resolution;
 
extern bool _rightclick_emulate;
 

	
 
#endif /* VIDEO_VIDEO_DRIVER_HPP */
0 comments (0 inline, 0 general)