changeset 17534:f1771dc228c2 draft

(svn r22298) -Change: allow enabling 'freeform edges' setting when there is only station label above one of northern tiles
author smatz <smatz@openttd.org>
date Thu, 07 Apr 2011 15:58:21 +0000
parents fba9ba4cfafb
children 29079caa99d6
files src/settings.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -1079,8 +1079,8 @@
 		}
 		BaseStation *st;
 		FOR_ALL_BASE_STATIONS(st) {
-			/* Check if there is a buoy on the northern border. */
-			if (TileX(st->xy) == 0 || TileY(st->xy) == 0) {
+			/* Check if there is a non-deleted buoy on the northern border. */
+			if (st->IsInUse() && (TileX(st->xy) == 0 || TileY(st->xy) == 0)) {
 				ShowErrorMessage(STR_CONFIG_SETTING_EDGES_NOT_EMPTY, INVALID_STRING_ID, WL_ERROR);
 				return false;
 			}