diff options
author | frosch <frosch@openttd.org> | 2008-10-19 17:30:41 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-10-19 17:30:41 +0000 |
commit | 4dcf12a3ad8df447577af3414eeb979faf83e145 (patch) | |
tree | 0ee747b8b6d105e6676e5a9fd3c15e917b937655 /src | |
parent | 6815cc52fec52c2db050211737fdad22bec4294c (diff) | |
download | openttd-4dcf12a3ad8df447577af3414eeb979faf83e145.tar.xz |
(svn r14493) -Fix[FS#planetmaker]: Do not assign a station spread to buoys on loading games.
Diffstat (limited to 'src')
-rw-r--r-- | src/openttd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index acccefb26..66c416557 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: |