summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-10-19 17:30:41 +0000
committerfrosch <frosch@openttd.org>2008-10-19 17:30:41 +0000
commit4dcf12a3ad8df447577af3414eeb979faf83e145 (patch)
tree0ee747b8b6d105e6676e5a9fd3c15e917b937655 /src/openttd.cpp
parent6815cc52fec52c2db050211737fdad22bec4294c (diff)
downloadopenttd-4dcf12a3ad8df447577af3414eeb979faf83e145.tar.xz
(svn r14493) -Fix[FS#planetmaker]: Do not assign a station spread to buoys on loading games.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
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: