changeset 2772 | 96e47991fd1d |
parent 2767 | 3282c77ffc27 |
child 2809 | 5bec9d1a7d6b |
--- a/command.c Sun Dec 18 20:48:22 2005 +0000 +++ b/command.c Sun Dec 18 22:48:45 2005 +0000 @@ -377,6 +377,10 @@ // if toplevel, subtract the money. if (--_docommand_recursive == 0) { SubtractMoneyFromPlayer(res); + // XXX - Old AI hack which doesn't use DoCommandDP; update last build coord of player + if ( (x|y) != 0 && _current_player < MAX_PLAYERS) { + GetPlayer(_current_player)->last_build_coordinate = TileVirtXY(x, y); + } } _cmd_text = NULL;