1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00

Refactor slope flags

This commit is contained in:
Gymnasiast
2024-05-02 23:31:01 +02:00
parent 9e2463ff52
commit 4cdaaa9810
35 changed files with 757 additions and 790 deletions

View File

@@ -43,6 +43,7 @@
#include "../world/Footpath.h"
#include "../world/Scenery.h"
#include "../world/Surface.h"
#include "../world/tile_element/Slope.h"
#include "PatrolArea.h"
#include "Peep.h"
@@ -412,7 +413,7 @@ uint8_t Staff::HandymanDirectionToUncutGrass(uint8_t valid_directions) const
if (surfaceElement->GetSlope() != PathSlopeToLandSlope[GetNextDirection()])
return INVALID_DIRECTION;
}
else if (surfaceElement->GetSlope() != TILE_ELEMENT_SLOPE_FLAT)
else if (surfaceElement->GetSlope() != kTileSlopeFlat)
return INVALID_DIRECTION;
}