(svn r18783) -Codechange: make CheckCompanyHasMoney set an error on the CommandCost it tests when you don't have enough money instead of setting a global variable.
This commit is contained in:
@@ -588,7 +588,7 @@ CommandCost CmdCloneVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
|
||||
/* The vehicle has already been bought, so now it must be sold again. */
|
||||
DoCommand(w_front->tile, w_front->index, 1, flags, GetCmdSellVeh(w_front));
|
||||
}
|
||||
return CMD_ERROR;
|
||||
return total_cost;
|
||||
}
|
||||
|
||||
return total_cost;
|
||||
|
Reference in New Issue
Block a user