town_cmd.c
changeset 2148 47ba4a1b1c3b
parent 2140 d708eb80ab8b
child 2150 010d923a81a9
--- a/town_cmd.c	Wed Jul 20 22:02:58 2005 +0000
+++ b/town_cmd.c	Wed Jul 20 22:05:13 2005 +0000
@@ -2,6 +2,7 @@
 #include "openttd.h"
 #include "strings.h"
 #include "table/strings.h"
+#include "table/sprites.h"
 #include "map.h"
 #include "tile.h"
 #include "viewport.h"
@@ -117,7 +118,7 @@
 	/* Add a house on top of the ground? */
 	if ((image = dcts->sprite_2) != 0) {
 		if (_display_opt & DO_TRANS_BUILDINGS)
-			image = (image & 0x3FFF) | 0x3224000;
+			MAKE_TRANSPARENT(image);
 
 		AddSortableSpriteToDraw(image,
 			ti->x + dcts->subtile_x,