forked from rosebudai/OpenRCT2-Web
Fix #9042. Pass the flags to wall placement when in track design mode
This commit is contained in:
1 parent
eedb24700d
commit
cee953f899
1 file changed
+1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user