summaryrefslogtreecommitdiff
path: root/src
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
commit56e5972790900885df6ce9572e4ea6ec79969393 (patch)
tree0ee747b8b6d105e6676e5a9fd3c15e917b937655 /src
parent4424c2e6fb263a613a6dbd1bdda246796ad1d330 (diff)
downloadopenttd-56e5972790900885df6ce9572e4ea6ec79969393.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.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: