unmovable_cmd.c
changeset 3654 c09872510a61
parent 3645 7f950533d510
child 3657 eb28d97d3d18
equal deleted inserted replaced
3653:35835f05da22 3654:c09872510a61
    15 #include "economy.h"
    15 #include "economy.h"
    16 #include "town.h"
    16 #include "town.h"
    17 #include "sprite.h"
    17 #include "sprite.h"
    18 #include "unmovable_map.h"
    18 #include "unmovable_map.h"
    19 #include "variables.h"
    19 #include "variables.h"
       
    20 #include "table/unmovable_land.h"
    20 
    21 
    21 /** Destroy a HQ.
    22 /** Destroy a HQ.
    22  * During normal gameplay you can only implicitely destroy a HQ when you are
    23  * During normal gameplay you can only implicitely destroy a HQ when you are
    23  * rebuilding it. Otherwise, only water can destroy it.
    24  * rebuilding it. Otherwise, only water can destroy it.
    24  * @param tile tile coordinates where HQ is located to destroy
    25  * @param tile tile coordinates where HQ is located to destroy
   116 		InvalidateWindow(WC_COMPANY, p->index);
   117 		InvalidateWindow(WC_COMPANY, p->index);
   117 	}
   118 	}
   118 
   119 
   119 	return cost;
   120 	return cost;
   120 }
   121 }
   121 
       
   122 typedef struct DrawTileUnmovableStruct {
       
   123 	uint16 image;
       
   124 	byte subcoord_x;
       
   125 	byte subcoord_y;
       
   126 	byte width;
       
   127 	byte height;
       
   128 	byte z_size;
       
   129 	byte unused;
       
   130 } DrawTileUnmovableStruct;
       
   131 
       
   132 #include "table/unmovable_land.h"
       
   133 
   122 
   134 static void DrawTile_Unmovable(TileInfo *ti)
   123 static void DrawTile_Unmovable(TileInfo *ti)
   135 {
   124 {
   136 	uint32 image, ormod;
   125 	uint32 image, ormod;
   137 
   126