Changeset - r8670:6a7e12744b17
[Not reviewed]
master
0 4 0
peter1138 - 16 years ago 2008-03-04 12:14:34
peter1138@openttd.org
(svn r12335) -Codechange: Don't stuff signed values into a unsigned variable when the variable can just be unsigned...
4 files changed with 6 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/gfx.cpp
Show inline comments
 
@@ -37,7 +37,7 @@ bool _screen_disable_anim = false;   ///
 
bool _exit_game;
 
bool _networking;         ///< are we in networking mode?
 
byte _game_mode;
 
byte _pause_game;
 
int8 _pause_game;
 
int _pal_first_dirty;
 
int _pal_count_dirty;
 

	
src/misc_cmd.cpp
Show inline comments
 
@@ -314,11 +314,11 @@ CommandCost CmdPause(TileIndex tile, uin
 
		_pause_game += (p1 == 0) ? -1 : 1;
 

	
 
		switch (_pause_game) {
 
			case (byte)-4:
 
			case (byte)-1:
 
			case -4:
 
			case -1:
 
				_pause_game = 0;
 
				break;
 
			case (byte)-3:
 
			case -3:
 
				ShowQuery(
 
					STR_NEWGRF_UNPAUSE_WARNING_TITLE,
 
					STR_NEWGRF_UNPAUSE_WARNING,
src/openttd.cpp
Show inline comments
 
@@ -1399,7 +1399,7 @@ bool AfterLoadGame()
 

	
 
	switch (gcf_res) {
 
		case GLC_COMPATIBLE: _switch_mode_errorstr = STR_NEWGRF_COMPATIBLE_LOAD_WARNING; break;
 
		case GLC_NOT_FOUND: _switch_mode_errorstr = STR_NEWGRF_DISABLED_WARNING; _pause_game = (byte)-1; break;
 
		case GLC_NOT_FOUND: _switch_mode_errorstr = STR_NEWGRF_DISABLED_WARNING; _pause_game = -1; break;
 
		default: break;
 
	}
 

	
src/openttd.h
Show inline comments
 
@@ -156,6 +156,6 @@ void OTTD_SendThreadMessage(ThreadMsg ms
 

	
 
extern byte _game_mode;
 
extern bool _exit_game;
 
extern byte _pause_game;
 
extern int8 _pause_game;
 

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