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
 
@@ -3420,25 +3420,25 @@ static void AiStateBuildDefaultAirportBl
 

	
 
#if 0
 
			if (!IsTileType(aib->use_tile, MP_STREET) &&
 
					!IsTileType(aib->use_tile, MP_RAILWAY) &&
 
					!IsTileType(aib->use_tile, MP_STATION)
 
					) {
 

	
 
				_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);
 
				}
 
				// also try the other terraform direction
 
				if (++p->ai.state_counter >= 1000) {
 
					p->ai.state_counter = 0;
 
					p->ai.state_mode = -p->ai.state_mode;
 
				}
 
			} else if (CheckPlayerHasMoney(cost) && AiCheckBlockDistances(p,aib->use_tile)) {
sdl.c
Show inline comments
 
@@ -677,34 +677,13 @@ static const char *SdlSoundStart(const c
 

	
 
static void SdlSoundStop(void)
 
{
 
	SDL_CALL SDL_CloseAudio();
 
	SdlClose(SDL_INIT_AUDIO);
 
}
 

	
 
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
 
@@ -43,25 +43,24 @@ void CallLandscapeTick(void);
 
void IncreaseDate(void);
 
void RunOtherPlayersLoop(void);
 
void DoPaletteAnimations(void);
 
void MusicLoop(void);
 
void ResetMusic(void);
 
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;
 
bool disable_computer; // We should get ride of this thing.. is only used for a debug-cheat
 
static byte _os_version = 0;
 

	
 
/* TODO: usrerror() for errors which are not of an internal nature but
 
 * caused by the user, i.e. missing files or fatal configuration errors.
 
 * Post-0.4.0 since Celestar doesn't want this in SVN before. --pasky */
0 comments (0 inline, 0 general)