diff options
author | tron <tron@openttd.org> | 2006-06-05 09:54:58 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-06-05 09:54:58 +0000 |
commit | 5dd68173c812e645cc3c2f15c6aeb6f2e35f3296 (patch) | |
tree | 8da3a7640386ff977fa8638aad69fb9335ea4c4c | |
parent | cfdbb53a82deb7b1a4f3ee1b88045496fa6ce181 (diff) | |
download | openttd-5dd68173c812e645cc3c2f15c6aeb6f2e35f3296.tar.xz |
(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
-rw-r--r-- | roadveh_cmd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c index 52347e337..f8d041695 100644 --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -259,9 +259,7 @@ int32 CmdSellRoadVeh(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES); - if (!IsTileDepotType(v->tile, TRANSPORT_ROAD) || - v->u.road.state != 254 || - !(v->vehstatus & VS_STOPPED)) { + if (v->u.road.state != 254 || !(v->vehstatus & VS_STOPPED)) { return_cmd_error(STR_9013_MUST_BE_STOPPED_INSIDE); } |