command.c
changeset 2772 96e47991fd1d
parent 2767 3282c77ffc27
child 2809 5bec9d1a7d6b
equal deleted inserted replaced
2771:53c0f60949b0 2772:96e47991fd1d
   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 }