Changeset - r3609:f9b766d73749
[Not reviewed]
master
0 2 0
celestar - 18 years ago 2006-04-21 17:51:01
celestar@openttd.org
(svn r4502) -Cleanup: Remove code unused since rev1. (Rubidium)
2 files changed with 0 insertions and 53 deletions:
0 comments (0 inline, 0 general)
ai/default/default.c
Show inline comments
 
@@ -3388,17 +3388,6 @@ static void AiStateBuildDefaultAirportBl
 
			// check if the aircraft stuff can be built there.
 
			rule = AiFindBestDefaultAirportBlock(aib->use_tile, aib->cargo, p->ai.build_kind, &cost);
 

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

	
 
				SetTileHeight(aib->use_tile, 1);
 
				MakeCompanyHQ(aib->use_tile, _current_player);
 
				MarkTileDirtyByTile(aib->use_tile);
 
			}
 
#endif
 
//			SetRedErrorSquare(aib->use_tile);
 

	
 
			if (rule == -1) {
viewport.c
Show inline comments
 
@@ -546,44 +546,6 @@ void *AddStringToDraw(int x, int y, Stri
 
	return ss;
 
}
 

	
 

	
 
#ifdef DEBUG_HILIGHT_MARKED_TILES
 

	
 
static void DrawHighlighedTile(const TileInfo *ti)
 
{
 
	if (_m[ti->tile].extra & 0x80) {
 
		DrawSelectionSprite(PALETTE_TILE_RED_PULSATING | (SPR_SELECT_TILE + _tileh_to_sprite[ti->tileh]), ti);
 
	}
 
}
 

	
 
int _debug_marked_tiles, _debug_red_tiles;
 

	
 
// Helper functions that allow you mark a tile as red.
 
void DebugMarkTile(TileIndex tile) {
 
	_debug_marked_tiles++;
 
	if (_m[tile].extra & 0x80)
 
		return;
 
	_debug_red_tiles++;
 
	MarkTileDirtyByTile(tile);
 
	_m[tile].extra = (_m[tile].extra & ~0xE0) | 0x80;
 
}
 

	
 
void DebugClearMarkedTiles()
 
{
 
	uint size = MapSize(), i;
 
	for (i = 0; i != size; i++) {
 
		if (_m[i].extra & 0x80) {
 
			_m[i].extra &= ~0x80;
 
			MarkTileDirtyByTile(i);
 
		}
 
	}
 
	_debug_red_tiles = 0;
 
	_debug_red_tiles = 0;
 
}
 

	
 

	
 
#endif
 

	
 
static void DrawSelectionSprite(uint32 image, const TileInfo *ti)
 
{
 
	if (_added_tile_sprite && !(_thd.drawstyle & HT_LINE)) { // draw on real ground
 
@@ -629,10 +591,6 @@ static void DrawTileSelection(const Tile
 
{
 
	uint32 image;
 

	
 
#ifdef DEBUG_HILIGHT_MARKED_TILES
 
	DrawHighlighedTile(ti);
 
#endif
 

	
 
	// Draw a red error square?
 
	if (_thd.redsq != 0 && _thd.redsq == ti->tile) {
 
		DrawSelectionSprite(PALETTE_TILE_RED_PULSATING | (SPR_SELECT_TILE + _tileh_to_sprite[ti->tileh]), ti);
0 comments (0 inline, 0 general)