mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-15 16:45:08 +01:00
(svn r5117) Remove a redundant check: If a road vehicle is in the state 'in depot', don't test if it's a road depot
This commit is contained in:
parent
4f5c84e720
commit
ddbcd9007c
@ -259,9 +259,7 @@ int32 CmdSellRoadVeh(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
|
|
||||||
SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);
|
SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);
|
||||||
|
|
||||||
if (!IsTileDepotType(v->tile, TRANSPORT_ROAD) ||
|
if (v->u.road.state != 254 || !(v->vehstatus & VS_STOPPED)) {
|
||||||
v->u.road.state != 254 ||
|
|
||||||
!(v->vehstatus & VS_STOPPED)) {
|
|
||||||
return_cmd_error(STR_9013_MUST_BE_STOPPED_INSIDE);
|
return_cmd_error(STR_9013_MUST_BE_STOPPED_INSIDE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user