summaryrefslogtreecommitdiff
path: root/unmovable_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-25 06:15:43 +0000
committertron <tron@openttd.org>2005-06-25 06:15:43 +0000
commit2b73dec56791a1aa3b2e3c333ae2d4673a7cfbfc (patch)
tree3374c2cd95704c5e34c2a7c62b0ba647c4002e7f /unmovable_cmd.c
parent80760b4f69bc4f552ff22593d19365662e62caf3 (diff)
downloadopenttd-2b73dec56791a1aa3b2e3c333ae2d4673a7cfbfc.tar.xz
(svn r2486) Turn TILE_FROM_XY into an inline function and rename it to TileVirtXY
Diffstat (limited to 'unmovable_cmd.c')
-rw-r--r--unmovable_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unmovable_cmd.c b/unmovable_cmd.c
index b2b684ec0..c8ae9b8dd 100644
--- a/unmovable_cmd.c
+++ b/unmovable_cmd.c
@@ -61,7 +61,7 @@ int32 DestroyCompanyHQ(TileIndex tile, uint32 flags)
extern int32 CheckFlatLandBelow(TileIndex tile, uint w, uint h, uint flags, uint invalid_dirs, int *);
int32 CmdBuildCompanyHQ(int x, int y, uint32 flags, uint32 p1, uint32 p2)
{
- TileIndex tile = TILE_FROM_XY(x,y);
+ TileIndex tile = TileVirtXY(x, y);
Player *p = GetPlayer(_current_player);
int cost;