@@ -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);
@@ -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()
#endif /* WITH_SDL */
@@ -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;
Status change: