# HG changeset patch # User tron # Date 1149501298 0 # Node ID bc8a5a77c3e22ed67fefe8812e44f2f305c9b0c3 # Parent cbff3192f0a414e397725a0ad2c8d0da4d4b97c7 (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 diff --git a/roadveh_cmd.c b/roadveh_cmd.c --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -259,9 +259,7 @@ 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); }