summaryrefslogtreecommitdiff
path: root/viewport.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-03-21 09:44:07 +0000
committercelestar <celestar@openttd.org>2006-03-21 09:44:07 +0000
commit4b86230d94d812c787f952e0892ad4670e67bf35 (patch)
tree3eb70d7256fcd1a6bf695e451542b8bb58030dd5 /viewport.c
parent1c7d522482fe97047a2aaf72126ce971236c85c7 (diff)
downloadopenttd-4b86230d94d812c787f952e0892ad4670e67bf35.tar.xz
(svn r3995) -Fix: Committed one file too much in 3992 (Thanks to Tron for pointing it out)
Diffstat (limited to 'viewport.c')
-rw-r--r--viewport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/viewport.c b/viewport.c
index c87e8e01f..7d88bb33a 100644
--- a/viewport.c
+++ b/viewport.c
@@ -634,7 +634,7 @@ static void DrawTileSelection(const TileInfo *ti)
#endif
// Draw a red error square?
- if (_thd.redsq != INVALID_TILE && _thd.redsq == ti->tile) {
+ if (_thd.redsq != 0 && _thd.redsq == ti->tile) {
DrawSelectionSprite(PALETTE_TILE_RED_PULSATING | (SPR_SELECT_TILE + _tileh_to_sprite[ti->tileh]), ti);
return;
}
@@ -1812,8 +1812,8 @@ void SetRedErrorSquare(TileIndex tile)
_thd.redsq = tile;
if (tile != old) {
- if (tile != INVALID_TILE) MarkTileDirtyByTile(tile);
- if (old != INVALID_TILE) MarkTileDirtyByTile(old);
+ if (tile != 0) MarkTileDirtyByTile(tile);
+ if (old != 0) MarkTileDirtyByTile(old);
}
}