summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-08-05 11:59:07 +0000
committeryexo <yexo@openttd.org>2010-08-05 11:59:07 +0000
commit330c2f979e794f751ccd0ee05256f7b788f13091 (patch)
tree549c1ac6c659b2e71e8d1da0ac8d389a599979cb /src/station_cmd.cpp
parent6321eb5a00be509ce0415411677b34d63d995a33 (diff)
downloadopenttd-330c2f979e794f751ccd0ee05256f7b788f13091.tar.xz
(svn r20365) -Codechange: allow multiple layouts for one airport statemachine, store the layout number
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index d99f77119..67000272b 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2214,6 +2214,7 @@ CommandCost CmdBuildAirport(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
st->AddFacility(FACIL_AIRPORT, tile);
st->airport.type = airport_type;
+ st->airport.layout = layout;
st->airport.flags = 0;
st->rect.BeforeAddRect(tile, w, h, StationRect::ADD_TRY);