summaryrefslogtreecommitdiff
path: root/ship_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-03 05:32:11 +0000
committercelestar <celestar@openttd.org>2006-04-03 05:32:11 +0000
commit3aa1e38be6e0a3c01346fe4db1bb92b148d0f2a9 (patch)
tree7d8babf7cbe0b9ecf1ebc12e27848ef54f79d0e3 /ship_cmd.c
parenta6403bd50a163434cb4a8a9354ac14ef6b0b90c6 (diff)
downloadopenttd-3aa1e38be6e0a3c01346fe4db1bb92b148d0f2a9.tar.xz
(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZE
Diffstat (limited to 'ship_cmd.c')
-rw-r--r--ship_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ship_cmd.c b/ship_cmd.c
index f75b8eef8..0fd9387c0 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -854,8 +854,8 @@ int32 CmdBuildShip(int x, int y, uint32 flags, uint32 p1, uint32 p2)
v->owner = _current_player;
v->tile = tile;
- x = TileX(tile) * 16 + 8;
- y = TileY(tile) * 16 + 8;
+ x = TileX(tile) * TILE_SIZE + 8;
+ y = TileY(tile) * TILE_SIZE + 8;
v->x_pos = x;
v->y_pos = y;
v->z_pos = GetSlopeZ(x,y);