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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user