changeset 1861:2dbb8e3305f0 draft

(svn r2367) Remove some unused functions, probably was some debug stuff
author tron <tron@openttd.org>
date Thu, 26 May 2005 19:43:56 +0000
parents b5dbf4a1788a
children 5c338054df7b
files ai.c sdl.c ttd.c
diffstat 3 files changed, 1 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/ai.c
+++ b/ai.c
@@ -3429,7 +3429,7 @@
 				MarkTileDirtyByTile(aib->use_tile);
 			}
 #endif
-//			redsq_debug(aib->use_tile);
+//			SetRedErrorSquare(aib->use_tile);
 
 			if (rule == -1) {
 				// cannot build, terraform after a while
--- a/sdl.c
+++ b/sdl.c
@@ -686,25 +686,4 @@
 	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 */
--- a/ttd.c
+++ b/ttd.c
@@ -52,7 +52,6 @@
 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);