mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r22298) -Change: allow enabling 'freeform edges' setting when there is only station label above one of northern tiles
This commit is contained in:
parent
a8862eb77f
commit
b5e132924e
@ -1079,8 +1079,8 @@ static bool CheckFreeformEdges(int32 p1)
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user