mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Fix #6413: Draw Maze previews correctly.
Mistake made during refactoring. Apply flag was not being passed to the game command and this meant that only the query to check if a maze element could be placed was called.
This commit is contained in:
committed by
Michael Steenbeek
parent
6621faf27a
commit
665aac7394
@@ -1213,7 +1213,7 @@ static sint32 track_design_place_maze(rct_track_td6 * td6, sint16 x, sint16 y, s
|
||||
{
|
||||
if (_trackDesignPlaceOperation == PTD_OPERATION_GET_COST)
|
||||
{
|
||||
flags = GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED | GAME_COMMAND_FLAG_5;
|
||||
flags = GAME_COMMAND_FLAG_APPLY | GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED | GAME_COMMAND_FLAG_5;
|
||||
}
|
||||
else if (_trackDesignPlaceOperation == PTD_OPERATION_4)
|
||||
{
|
||||
@@ -1245,7 +1245,7 @@ static sint32 track_design_place_maze(rct_track_td6 * td6, sint16 x, sint16 y, s
|
||||
{
|
||||
if (_trackDesignPlaceOperation == PTD_OPERATION_GET_COST)
|
||||
{
|
||||
flags = GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED | GAME_COMMAND_FLAG_5;
|
||||
flags = GAME_COMMAND_FLAG_APPLY | GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED | GAME_COMMAND_FLAG_5;
|
||||
}
|
||||
else if (_trackDesignPlaceOperation == PTD_OPERATION_4)
|
||||
{
|
||||
@@ -1265,7 +1265,7 @@ static sint32 track_design_place_maze(rct_track_td6 * td6, sint16 x, sint16 y, s
|
||||
|
||||
if (_trackDesignPlaceOperation == PTD_OPERATION_GET_COST)
|
||||
{
|
||||
flags = GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED | GAME_COMMAND_FLAG_5;
|
||||
flags = GAME_COMMAND_FLAG_APPLY | GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED | GAME_COMMAND_FLAG_5;
|
||||
}
|
||||
else if (_trackDesignPlaceOperation == PTD_OPERATION_4)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user