mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 00:34:46 +01:00
Refactor slope flags
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include "../ride/Track.h"
|
||||
#include "../ride/TrackData.h"
|
||||
#include "../util/Util.h"
|
||||
#include "../world/tile_element/Slope.h"
|
||||
#include "Location.hpp"
|
||||
#include "Map.h"
|
||||
#include "MapAnimation.h"
|
||||
@@ -180,8 +181,7 @@ money64 FootpathProvisionalSet(
|
||||
VirtualFloorSetHeight(0);
|
||||
}
|
||||
else if (
|
||||
gFootpathConstructSlope == TILE_ELEMENT_SLOPE_FLAT
|
||||
|| gProvisionalFootpath.Position.z < gFootpathConstructFromPosition.z)
|
||||
gFootpathConstructSlope == kTileSlopeFlat || gProvisionalFootpath.Position.z < gFootpathConstructFromPosition.z)
|
||||
{
|
||||
// Going either straight on, or down.
|
||||
VirtualFloorSetHeight(gProvisionalFootpath.Position.z);
|
||||
|
||||
Reference in New Issue
Block a user