From 61f6f07edd837728d72e83daa0a4b8893ec77307 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 25 Jun 2005 06:15:43 +0000 Subject: (svn r2486) Turn TILE_FROM_XY into an inline function and rename it to TileVirtXY --- command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'command.c') diff --git a/command.c b/command.c index f1ef48098..90c548c9a 100644 --- a/command.c +++ b/command.c @@ -325,7 +325,7 @@ int32 DoCommand(int x, int y, uint32 p1, uint32 p2, uint32 flags, uint procc) CommandProc *proc; /* Do not even think about executing out-of-bounds tile-commands */ - if (TILE_FROM_XY(x,y) > MapSize()) { + if (TileVirtXY(x, y) > MapSize()) { _cmd_text = NULL; return CMD_ERROR; } @@ -336,7 +336,7 @@ int32 DoCommand(int x, int y, uint32 p1, uint32 p2, uint32 flags, uint procc) _error_message = INVALID_STRING_ID; // update last build coord of player if ( (x|y) != 0 && _current_player < MAX_PLAYERS) { - GetPlayer(_current_player)->last_build_coordinate = TILE_FROM_XY(x,y); + GetPlayer(_current_player)->last_build_coordinate = TileVirtXY(x, y); } } -- cgit v1.2.3-70-g09d2