equal
deleted
inserted
replaced
315 |
315 |
316 byte GetCommandFlags(uint cmd) {return _command_proc_table[cmd & 0xFF].flags;} |
316 byte GetCommandFlags(uint cmd) {return _command_proc_table[cmd & 0xFF].flags;} |
317 |
317 |
318 int32 DoCommandByTile(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc) |
318 int32 DoCommandByTile(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc) |
319 { |
319 { |
320 return DoCommand(TileX(tile) * 16, TileY(tile) * 16, p1, p2, flags, procc); |
320 return DoCommand(TileX(tile) * TILE_SIZE, TileY(tile) * TILE_SIZE, p1, p2, flags, procc); |
321 } |
321 } |
322 |
322 |
323 |
323 |
324 static int _docommand_recursive; |
324 static int _docommand_recursive; |
325 |
325 |
399 CommandProc *proc; |
399 CommandProc *proc; |
400 uint32 flags; |
400 uint32 flags; |
401 bool notest; |
401 bool notest; |
402 StringID error_part1; |
402 StringID error_part1; |
403 |
403 |
404 int x = TileX(tile) * 16; |
404 int x = TileX(tile) * TILE_SIZE; |
405 int y = TileY(tile) * 16; |
405 int y = TileY(tile) * TILE_SIZE; |
406 |
406 |
407 /* Do not even think about executing out-of-bounds tile-commands */ |
407 /* Do not even think about executing out-of-bounds tile-commands */ |
408 if (tile >= MapSize()) { |
408 if (tile >= MapSize()) { |
409 _cmd_text = NULL; |
409 _cmd_text = NULL; |
410 return false; |
410 return false; |