mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #9042. Pass the flags to wall placement when in track design mode
This commit is contained in:
parent
eedb24700d
commit
cee953f899
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue