src/rail_cmd.cpp
changeset 6317 c73bda71ac16
parent 5989 88540735bad4
child 6319 27e68b914d3d
--- a/src/rail_cmd.cpp	Tue Feb 13 00:25:42 2007 +0000
+++ b/src/rail_cmd.cpp	Tue Feb 13 10:26:53 2007 +0000
@@ -1946,7 +1946,7 @@
 	int length;
 
 	// this routine applies only to trains in depot tiles
-	if (v->type != VEH_Train || !IsTileDepotType(tile, TRANSPORT_RAIL)) return 0;
+	if (v->type != VEH_Train || !IsTileDepotType(tile, TRANSPORT_RAIL)) return VETSB_CONTINUE;
 
 	/* depot direction */
 	dir = GetRailDepotDirection(tile);
@@ -1965,7 +1965,7 @@
 
 	if (_fractcoords_behind[dir] == fract_coord) {
 		/* make sure a train is not entering the tile from behind */
-		return 8;
+		return VETSB_CANNOT_ENTER;
 	} else if (_fractcoords_enter[dir] == fract_coord) {
 		if (DiagDirToDir(ReverseDiagDir(dir)) == v->direction) {
 			/* enter the depot */
@@ -1976,7 +1976,7 @@
 			v->tile = tile;
 
 			InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
-			return 4;
+			return VETSB_ENTERED_WORMHOLE;
 		}
 	} else if (fract_coord_leave == fract_coord) {
 		if (DiagDirToDir(dir) == v->direction) {
@@ -1988,7 +1988,7 @@
 		}
 	}
 
-	return 0;
+	return VETSB_CONTINUE;
 }