mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 22:34:33 +01:00
Desnake TrackDesign fields
This commit is contained in:
@@ -438,7 +438,7 @@ static Widget _trackPlaceWidgets[] = {
|
||||
void DrawMiniPreviewEntrances(
|
||||
const TrackDesign& td6, int32_t pass, const CoordsXY& origin, CoordsXY& min, CoordsXY& max, Direction rotation)
|
||||
{
|
||||
for (const auto& entrance : td6.entrance_elements)
|
||||
for (const auto& entrance : td6.entranceElements)
|
||||
{
|
||||
auto rotatedAndOffsetEntrance = origin + entrance.Location.ToCoordsXY().Rotate(rotation);
|
||||
|
||||
@@ -474,7 +474,7 @@ static Widget _trackPlaceWidgets[] = {
|
||||
|
||||
CoordsXY curTrackStart = origin;
|
||||
uint8_t curTrackRotation = rotation;
|
||||
for (const auto& trackElement : td6->track_elements)
|
||||
for (const auto& trackElement : td6->trackElements)
|
||||
{
|
||||
// Follow a single track piece shape
|
||||
const auto& ted = GetTrackElementDescriptor(trackElement.Type);
|
||||
@@ -545,7 +545,7 @@ static Widget _trackPlaceWidgets[] = {
|
||||
void DrawMiniPreviewMaze(TrackDesign* td6, int32_t pass, const CoordsXY& origin, CoordsXY& min, CoordsXY& max)
|
||||
{
|
||||
uint8_t rotation = (_currentTrackPieceDirection + GetCurrentRotation()) & 3;
|
||||
for (const auto& mazeElement : td6->maze_elements)
|
||||
for (const auto& mazeElement : td6->mazeElements)
|
||||
{
|
||||
auto rotatedMazeCoords = origin + TileCoordsXY{ mazeElement.x, mazeElement.y }.ToCoordsXY().Rotate(rotation);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user