town_cmd.c
changeset 2148 47ba4a1b1c3b
parent 2140 d708eb80ab8b
child 2150 010d923a81a9
equal deleted inserted replaced
2147:42efdf5020d1 2148:47ba4a1b1c3b
     1 #include "stdafx.h"
     1 #include "stdafx.h"
     2 #include "openttd.h"
     2 #include "openttd.h"
     3 #include "strings.h"
     3 #include "strings.h"
     4 #include "table/strings.h"
     4 #include "table/strings.h"
       
     5 #include "table/sprites.h"
     5 #include "map.h"
     6 #include "map.h"
     6 #include "tile.h"
     7 #include "tile.h"
     7 #include "viewport.h"
     8 #include "viewport.h"
     8 #include "town.h"
     9 #include "town.h"
     9 #include "command.h"
    10 #include "command.h"
   115 	}
   116 	}
   116 
   117 
   117 	/* Add a house on top of the ground? */
   118 	/* Add a house on top of the ground? */
   118 	if ((image = dcts->sprite_2) != 0) {
   119 	if ((image = dcts->sprite_2) != 0) {
   119 		if (_display_opt & DO_TRANS_BUILDINGS)
   120 		if (_display_opt & DO_TRANS_BUILDINGS)
   120 			image = (image & 0x3FFF) | 0x3224000;
   121 			MAKE_TRANSPARENT(image);
   121 
   122 
   122 		AddSortableSpriteToDraw(image,
   123 		AddSortableSpriteToDraw(image,
   123 			ti->x + dcts->subtile_x,
   124 			ti->x + dcts->subtile_x,
   124 			ti->y + dcts->subtile_y,
   125 			ti->y + dcts->subtile_y,
   125 			dcts->width + 1,
   126 			dcts->width + 1,