mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 18:31:59 -05:00
Fix TD4 version 0 mazes
This commit is contained in:
parent
6316d9eb20
commit
af05688764
2 changed files with 12 additions and 0 deletions
|
@ -882,6 +882,13 @@ enum {
|
|||
RIDE_SETTING_RIDE_TYPE,
|
||||
};
|
||||
|
||||
enum {
|
||||
MAZE_WALL_TYPE_BRICK,
|
||||
MAZE_WALL_TYPE_HEDGE,
|
||||
MAZE_WALL_TYPE_ICE,
|
||||
MAZE_WALL_TYPE_WOOD,
|
||||
};
|
||||
|
||||
typedef struct rct_ride_properties {
|
||||
uint32 flags;
|
||||
uint8 min_value;
|
||||
|
|
|
@ -208,6 +208,11 @@ static rct_track_td6 * track_design_open_from_td4(uint8 *src, size_t srcLength)
|
|||
td6->track_spine_colour[i] = rct1_get_colour(td4->track_spine_colour_v0);
|
||||
td6->track_rail_colour[i] = rct1_get_colour(td4->track_rail_colour_v0);
|
||||
td6->track_support_colour[i] = rct1_get_colour(td4->track_support_colour_v0);
|
||||
|
||||
// Mazes were only hedges
|
||||
if (td4->type == RCT1_RIDE_TYPE_HEDGE_MAZE) {
|
||||
td6->track_support_colour[i] = MAZE_WALL_TYPE_HEDGE;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (int i = 0; i < 4; i++) {
|
||||
|
|
Loading…
Reference in a new issue