(svn r3995) -Fix: Committed one file too much in 3992 (Thanks to Tron for pointing it out)
authorcelestar
Tue, 21 Mar 2006 09:44:07 +0000
changeset 3281 757d7da49445
parent 3280 4cc911861aea
child 3282 d026008a8f7c
(svn r3995) -Fix: Committed one file too much in 3992 (Thanks to Tron for pointing it out)
viewport.c
--- a/viewport.c	Tue Mar 21 09:14:41 2006 +0000
+++ b/viewport.c	Tue Mar 21 09:44:07 2006 +0000
@@ -634,7 +634,7 @@
 #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 @@
 	_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);
 	}
 }