summaryrefslogtreecommitdiff
path: root/src/station_map.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-07-26 16:14:10 +0000
committerfrosch <frosch@openttd.org>2008-07-26 16:14:10 +0000
commit6684bc12d575265d5db59387cdc33dffb602303b (patch)
tree3a62ec9adb234e8726387b1573747436f7d43e9f /src/station_map.h
parentc64e3b488273010ace06cebb2d4b55b03735eb1c (diff)
downloadopenttd-6684bc12d575265d5db59387cdc33dffb602303b.tar.xz
(svn r13838) -Codechange: Make industry tiles aware of WaterClasses.
Diffstat (limited to 'src/station_map.h')
-rw-r--r--src/station_map.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/station_map.h b/src/station_map.h
index 0ec6797dc..7422a32e5 100644
--- a/src/station_map.h
+++ b/src/station_map.h
@@ -313,9 +313,10 @@ static inline void MakeDock(TileIndex t, Owner o, StationID sid, DiagDirection d
SetWaterClass(t + TileOffsByDiagDir(d), wc);
}
-static inline void MakeOilrig(TileIndex t, StationID sid)
+static inline void MakeOilrig(TileIndex t, StationID sid, WaterClass wc)
{
MakeStation(t, OWNER_NONE, sid, STATION_OILRIG, 0);
+ SetWaterClass(t, wc);
}
#endif /* STATION_MAP_H */