command.c
changeset 2772 593f2304e5ea
parent 2767 25fef06bab87
child 2809 83072edcaae4
equal deleted inserted replaced
2771:18a5056d5dd9 2772:593f2304e5ea
   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 }