Fix #9042. Pass the flags to wall placement when in track design mode

This commit is contained in:
duncanspumpkin 2019-04-04 19:20:55 +01:00
parent eedb24700d
commit cee953f899
1 changed files with 1 additions and 0 deletions

View File

@ -960,6 +960,7 @@ static bool TrackDesignPlaceSceneryElement(
auto wallPlaceAction = WallPlaceAction(
entry_index, { mapCoord.x, mapCoord.y, z }, rotation, scenery->primary_colour, scenery->secondary_colour,
scenery->flags & 0xFC);
wallPlaceAction.SetFlags(flags);
auto res = flags & GAME_COMMAND_FLAG_APPLY ? GameActions::Execute(&wallPlaceAction)
: GameActions::Query(&wallPlaceAction);