mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r7074) -Fix (r7073): stupid debugs
This commit is contained in:
parent
6ebac79c45
commit
62fc499370
@ -279,9 +279,7 @@ void CcAI(bool success, TileIndex tile, uint32 p1, uint32 p2)
|
|||||||
|
|
||||||
if (GetVehicle(p->ainew.veh_id)->cargo_type != p->ainew.cargo) {
|
if (GetVehicle(p->ainew.veh_id)->cargo_type != p->ainew.cargo) {
|
||||||
/* Cargo type doesn't match, so refit it */
|
/* Cargo type doesn't match, so refit it */
|
||||||
debug("doing refit");
|
|
||||||
if (CmdFailed(DoCommand(tile, p->ainew.veh_id, p->ainew.cargo, DC_EXEC, CMD_REFIT_ROAD_VEH))) {
|
if (CmdFailed(DoCommand(tile, p->ainew.veh_id, p->ainew.cargo, DC_EXEC, CMD_REFIT_ROAD_VEH))) {
|
||||||
debug("refit failed, selling");
|
|
||||||
/* Refit failed, so sell the vehicle */
|
/* Refit failed, so sell the vehicle */
|
||||||
DoCommand(tile, p->ainew.veh_id, 0, DC_EXEC, CMD_SELL_ROAD_VEH);
|
DoCommand(tile, p->ainew.veh_id, 0, DC_EXEC, CMD_SELL_ROAD_VEH);
|
||||||
p->ainew.state = AI_STATE_NOTHING;
|
p->ainew.state = AI_STATE_NOTHING;
|
||||||
|
Loading…
Reference in New Issue
Block a user