1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +01:00

Set tertiary colour correctly

This commit is contained in:
duncanspumpkin
2019-04-06 18:56:44 +01:00
parent 787993c117
commit 63f9e3dbb4

View File

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