From 4dcf12a3ad8df447577af3414eeb979faf83e145 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 19 Oct 2008 17:30:41 +0000 Subject: [PATCH] (svn r14493) -Fix[FS#planetmaker]: Do not assign a station spread to buoys on loading games. --- src/openttd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openttd.cpp b/src/openttd.cpp index acccefb26e..66c4165577 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1507,7 +1507,8 @@ bool AfterLoadGame() case MP_STATION: { Station *st = GetStationByTile(t); - st->rect.BeforeAddTile(t, StationRect::ADD_FORCE); + /* Set up station spread; buoys do not have one */ + if (!IsBuoy(t)) st->rect.BeforeAddTile(t, StationRect::ADD_FORCE); switch (GetStationType(t)) { case STATION_TRUCK: