changeset 3958:bc8a5a77c3e2 draft

(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
author tron <tron@openttd.org>
date Mon, 05 Jun 2006 09:54:58 +0000
parents cbff3192f0a4
children a89fed199ad0
files roadveh_cmd.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);
 	}