(svn r20365) -Codechange: allow multiple layouts for one airport statemachine, store the layout number

This commit is contained in:
yexo
2010-08-05 11:59:07 +00:00
parent 6321eb5a00
commit 330c2f979e
6 changed files with 44 additions and 3 deletions

View File

@@ -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);