1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 09:44:52 +01:00

Move wall edge definitions from header to compilation unit

This commit is contained in:
Aaron van Geffen
2024-01-22 19:45:51 +01:00
committed by GitHub
parent 2c26799ca4
commit dcd1f60f4f
4 changed files with 57 additions and 50 deletions

View File

@@ -119,7 +119,7 @@ GameActions::Result WallPlaceAction::Query() const
targetHeight = surfaceElement->GetBaseZ();
uint8_t slope = surfaceElement->GetSlope();
edgeSlope = LandSlopeToWallSlope[slope][_edge & 3];
edgeSlope = GetWallSlopeFromEdgeSlope(slope, _edge & 3);
if (edgeSlope & EDGE_SLOPE_ELEVATED)
{
targetHeight += 16;
@@ -298,7 +298,7 @@ GameActions::Result WallPlaceAction::Execute() const
targetHeight = surfaceElement->GetBaseZ();
uint8_t slope = surfaceElement->GetSlope();
edgeSlope = LandSlopeToWallSlope[slope][_edge & 3];
edgeSlope = GetWallSlopeFromEdgeSlope(slope, _edge & 3);
if (edgeSlope & EDGE_SLOPE_ELEVATED)
{
targetHeight += 16;