mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 17:19:09 +00:00
(svn r14407) -Cleanup (r14406): Remove a redundant test. (thanks SmatZ)
This commit is contained in:
@@ -382,10 +382,8 @@ static CommandCost ReplaceFreeUnit(Vehicle **single_unit, uint32 flags, bool *no
|
|||||||
*single_unit = new_v;
|
*single_unit = new_v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cost.Succeeded()) {
|
|
||||||
/* Sell the old vehicle */
|
/* Sell the old vehicle */
|
||||||
cost.AddCost(DoCommand(0, old_v->index, 0, flags, GetCmdSellVeh(old_v)));
|
cost.AddCost(DoCommand(0, old_v->index, 0, flags, GetCmdSellVeh(old_v)));
|
||||||
}
|
|
||||||
|
|
||||||
/* If we are not in DC_EXEC undo everything */
|
/* If we are not in DC_EXEC undo everything */
|
||||||
if ((flags & DC_EXEC) == 0) {
|
if ((flags & DC_EXEC) == 0) {
|
||||||
|
Reference in New Issue
Block a user