forked from rosebudai/OpenRCT2-Web
Convert height markers field to sequence flag (#25501)
This commit is contained in:
1 parent
a8e7016952
commit
d7ec490ecc
5 files changed
+668
-518
No files matched your search
@@ -32,6 +32,7 @@
|
||||
- Improved: [#25028] Stalls now support colour presets, just like regular rides.
|
||||
- Improved: [#25426] Building the track designs index is now quicker.
|
||||
- Improved: [#25490] The ‘New Ride’ window can now be resized.
|
||||
- Improved: [#25502] Track height markers on flat rides now more sensible.
|
||||
- Fix: [#6228] The saved queue line path connections are not preserved when placing track designs (original bug).
|
||||
- Fix: [#14365] Track designs with scenery below the lowest track piece do not preview correctly.
|
||||
- Fix: [#25451] Dropdown item tooltips stay open if the mouse is moved over an empty space.
|
||||
@@ -42,6 +43,7 @@
|
||||
- Fix: [#25480] The mini track design preview and price are misaligned in Enlarged UI mode.
|
||||
- Fix: [#25488] Crash in headless mode.
|
||||
- Fix: [#25494] The Go-Karts steep to flat track does not draw correctly in the flat side tunnel.
|
||||
- Fix: [#25503] Height markers missing from some maze tiles.
|
||||
- Fix: [#25518] The virtual floor does not draw correctly if expanded on the positive x and y axes.
|
||||
- Fix: [#25519] Crackling audio when sampling frequencies do not match.
|
||||
- Fix: [objects#401] Round tunnels on down slopes glitch.
|
||||
|
||||
@@ -196,7 +196,15 @@ struct SequenceClearance
|
||||
uint8_t flags{};
|
||||
};
|
||||
|
||||
/* size 0x0A */
|
||||
/** TrackCoordinates
|
||||
* rotationBegin: Start direction of the track piece; 0 (cardinal) or 4 (45 degrees clockwise)
|
||||
* rotationEnd: End direction of the track peice, measured clockwise
|
||||
* zBegin: how high above the base level of the lowest track block the spline starts
|
||||
* zEnd: how high above the base level of the lowest track block the spline ends
|
||||
* x: tile offset to the end track block; negative is along the original direction of travel
|
||||
* Next track piece is found by moving one tile after end of the track piece, so vertical track has an x value of 32
|
||||
* y: tile offset to the end track block; negative is to the left of the original direction of travel
|
||||
*/
|
||||
struct TrackCoordinates
|
||||
{
|
||||
int8_t rotationBegin; // 0x00
|
||||
@@ -637,9 +645,10 @@ enum class SequenceFlag : uint8_t
|
||||
entranceConnectionSE, // connect to right
|
||||
entranceConnectionSW, // connect to back
|
||||
entranceConnectionNW, // connect to left
|
||||
trackOrigin, // 0x10
|
||||
connectsToPath, // 0x20
|
||||
disallowDoors, // 0x40
|
||||
trackOrigin,
|
||||
connectsToPath, // The sides of this sequence block flagged with entrance connections can connect directly to paths
|
||||
disallowDoors, // Doors cannot be built on any side of this track element (only valid on first sequence of track element)
|
||||
hasHeightMarker, // Displays a height marker on this sequence block
|
||||
};
|
||||
|
||||
enum
|
||||
|
||||
+648
-512
File diff suppressed because it is too large.
Load diff
@@ -117,14 +117,16 @@ namespace OpenRCT2::TrackMetaData
|
||||
StringId description;
|
||||
TrackCoordinates coordinates;
|
||||
|
||||
// Used to estimate the ride length for number of powered vehicle trains
|
||||
uint8_t pieceLength;
|
||||
// Piece the ride construction window automatically selects next
|
||||
TrackCurveChain curveChain;
|
||||
// Track element to build when building "covered"/"splashdown" track
|
||||
OpenRCT2::TrackElemType alternativeType;
|
||||
// Price Modifier should be used as in the following calculation:
|
||||
// (RideTrackPrice * TED::PriceModifier) / 65536
|
||||
uint32_t priceModifier;
|
||||
OpenRCT2::TrackElemType mirrorElement;
|
||||
uint32_t heightMarkerPositions;
|
||||
uint32_t flags;
|
||||
|
||||
uint8_t numSequences{};
|
||||
|
||||
@@ -1978,7 +1978,8 @@ void PaintTrack(PaintSession& session, Direction direction, int32_t height, cons
|
||||
{
|
||||
session.InteractionType = ViewportInteractionItem::none;
|
||||
const auto& ted = GetTrackElementDescriptor(trackType);
|
||||
if (ted.heightMarkerPositions & (1 << trackSequence))
|
||||
if ((trackType == TrackElemType::Maze)
|
||||
|| (trackSequence < ted.numSequences && ted.sequences[trackSequence].flags.has(SequenceFlag::hasHeightMarker)))
|
||||
{
|
||||
uint16_t ax = ride->getRideTypeDescriptor().Heights.VehicleZOffset;
|
||||
// 0x1689 represents 0 height there are -127 to 128 heights above and below it
|
||||
|
||||
Reference in new issue
Block a user