diff src/station_cmd.cpp @ 6719:e745bb9e9727 draft

(svn r9951) -Fix: slope check was incomplete when building road over tram track (and vice-versa) -Fix: you could build a drive-through station over a sloped road/tram track
author glx <glx@openttd.org>
date Sun, 27 May 2007 01:03:59 +0000 (2007-05-27)
parents 9db57e7e8526
children 8fa32d4cf5ab
line wrap: on
line diff
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -1279,10 +1279,9 @@
 
 		/* Do not remove roadtypes! */
 		rts |= cur_rts;
-	} else {
-		cost = CheckFlatLandBelow(tile, 1, 1, flags, is_drive_through ? 5 << p1 : 1 << p1, NULL);
-		if (CmdFailed(cost)) return cost;
 	}
+	cost = CheckFlatLandBelow(tile, 1, 1, flags, is_drive_through ? 5 << p1 : 1 << p1, NULL);
+	if (CmdFailed(cost)) return cost;
 
 	Station *st = NULL;