diff options
author | celestar <celestar@openttd.org> | 2006-04-03 05:32:11 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-04-03 05:32:11 +0000 |
commit | 3aa1e38be6e0a3c01346fe4db1bb92b148d0f2a9 (patch) | |
tree | 7d8babf7cbe0b9ecf1ebc12e27848ef54f79d0e3 /command.c | |
parent | a6403bd50a163434cb4a8a9354ac14ef6b0b90c6 (diff) | |
download | openttd-3aa1e38be6e0a3c01346fe4db1bb92b148d0f2a9.tar.xz |
(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZE
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -317,7 +317,7 @@ byte GetCommandFlags(uint cmd) {return _command_proc_table[cmd & 0xFF].flags;} int32 DoCommandByTile(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc) { - return DoCommand(TileX(tile) * 16, TileY(tile) * 16, p1, p2, flags, procc); + return DoCommand(TileX(tile) * TILE_SIZE, TileY(tile) * TILE_SIZE, p1, p2, flags, procc); } @@ -401,8 +401,8 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, bool notest; StringID error_part1; - int x = TileX(tile) * 16; - int y = TileY(tile) * 16; + int x = TileX(tile) * TILE_SIZE; + int y = TileY(tile) * TILE_SIZE; /* Do not even think about executing out-of-bounds tile-commands */ if (tile >= MapSize()) { |