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

Part of #13874: replace height markers positions tables

This commit is contained in:
frutiemax
2021-08-22 10:01:30 -04:00
parent 1bfa26e4c5
commit 72e6f9a694
3 changed files with 5 additions and 4 deletions

View File

@@ -27,6 +27,8 @@
#include "TrackData.h"
#include "TrackDesign.h"
using namespace OpenRCT2::TrackMetaData;
// clang-format off
/* rct2: 0x007667AC */
static constexpr TileCoordsXY EntranceOffsetEdgeNE[] = {
@@ -2202,7 +2204,8 @@ void PaintTrack(paint_session* session, Direction direction, int32_t height, con
if (PaintShouldShowHeightMarkers(session, VIEWPORT_FLAG_TRACK_HEIGHTS))
{
session->InteractionType = ViewportInteractionItem::None;
if (TrackHeightMarkerPositions[trackType] & (1 << trackSequence))
const auto& teDescriptor = GetTrackElementDescriptor(trackType);
if (teDescriptor.HeightMarkerPositions & (1 << trackSequence))
{
uint16_t ax = ride->GetRideTypeDescriptor().Heights.VehicleZOffset;
// 0x1689 represents 0 height there are -127 to 128 heights above and below it