equal
deleted
inserted
replaced
375 } |
375 } |
376 |
376 |
377 // if toplevel, subtract the money. |
377 // if toplevel, subtract the money. |
378 if (--_docommand_recursive == 0) { |
378 if (--_docommand_recursive == 0) { |
379 SubtractMoneyFromPlayer(res); |
379 SubtractMoneyFromPlayer(res); |
|
380 // XXX - Old AI hack which doesn't use DoCommandDP; update last build coord of player |
|
381 if ( (x|y) != 0 && _current_player < MAX_PLAYERS) { |
|
382 GetPlayer(_current_player)->last_build_coordinate = TileVirtXY(x, y); |
|
383 } |
380 } |
384 } |
381 |
385 |
382 _cmd_text = NULL; |
386 _cmd_text = NULL; |
383 return res; |
387 return res; |
384 } |
388 } |