diff src/openttd.cpp @ 10262:4c0cbbcc9459 draft

(svn r14493) -Fix[FS#planetmaker]: Do not assign a station spread to buoys on loading games.
author frosch <frosch@openttd.org>
date Sun, 19 Oct 2008 17:30:41 +0000
parents 59398a628f10
children 5f3f0d0a6e07
line wrap: on
line diff
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1507,7 +1507,8 @@
 			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: