Changeset - r1861:86501e97a14c
[Not reviewed]
master
0 3 0
tron - 19 years ago 2005-05-26 19:43:56
tron@openttd.org
(svn r2367) Remove some unused functions, probably was some debug stuff
3 files changed with 1 insertions and 23 deletions:
ai.c
1
1
sdl.c
21
ttd.c
1
0 comments (0 inline, 0 general)
ai.c
Show inline comments
 
@@ -3426,13 +3426,13 @@ static void AiStateBuildDefaultAirportBl
 

	
 
				_map_type_and_height[aib->use_tile] = 0xa1;
 
				_map5[aib->use_tile] = 0x80;
 
				MarkTileDirtyByTile(aib->use_tile);
 
			}
 
#endif
 
//			redsq_debug(aib->use_tile);
 
//			SetRedErrorSquare(aib->use_tile);
 

	
 
			if (rule == -1) {
 
				// cannot build, terraform after a while
 
				if (p->ai.state_counter >= 600) {
 
					AiDoTerraformLand(aib->use_tile, Random()&3, 3, (int8)p->ai.state_mode);
 
				}
sdl.c
Show inline comments
 
@@ -683,28 +683,7 @@ static void SdlSoundStop(void)
 

	
 
const HalSoundDriver _sdl_sound_driver = {
 
	SdlSoundStart,
 
	SdlSoundStop,
 
};
 

	
 

	
 
#if 0 /* XXX what the heck is that? */
 
#include "viewport.h"
 
void redsq_debug(int tile)
 
{
 
	_thd.redsq = tile;
 
	MarkWholeScreenDirty();
 
	_screen.dst_ptr = _sdl_screen->pixels;
 
	UpdateWindows();
 

	
 
	SdlVideoMakeDirty(0,0,_screen.width,_screen.height);
 
	DrawSurfaceToScreen();
 
}
 

	
 
static void DbgRedraw()
 
{
 
	SdlVideoMakeDirty(0,0,_screen.width,_screen.height);
 
	DrawSurfaceToScreen();
 
}
 
#endif
 

	
 
#endif /* WITH_SDL */
ttd.c
Show inline comments
 
@@ -49,13 +49,12 @@ void InitializeStations(void);
 
void DeleteAllPlayerStations(void);
 

	
 
extern void SetDifficultyLevel(int mode, GameOptions *gm_opt);
 
extern void DoStartupNewPlayer(bool is_ai);
 
extern void ShowOSErrorBox(const char *buf);
 

	
 
void redsq_debug(int tile);
 
bool LoadSavegame(const char *filename);
 

	
 
extern void HalGameLoop(void);
 

	
 
uint32 _pixels_redrawn;
 
bool _dbg_screen_rect;
0 comments (0 inline, 0 general)