1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-01 19:25:12 +01:00

Properly name what the getter/setter for surface object index is

This commit is contained in:
ζeh Matt
2023-08-26 20:50:06 +03:00
parent 7582006e10
commit ae3c1037ad
12 changed files with 26 additions and 26 deletions

View File

@@ -136,7 +136,7 @@ protected:
static ::testing::AssertionResult AssertIsStartPosition(const char*, const TileCoordsXYZ& location)
{
const uint32_t expectedSurfaceStyle = 11u;
const uint32_t style = MapGetSurfaceElementAt(location.ToCoordsXYZ())->GetSurfaceStyle();
const uint32_t style = MapGetSurfaceElementAt(location.ToCoordsXYZ())->GetSurfaceObjectIndex();
if (style != expectedSurfaceStyle)
return ::testing::AssertionFailure()
@@ -151,7 +151,7 @@ protected:
{
const uint32_t forbiddenSurfaceStyle = 8u;
const uint32_t style = MapGetSurfaceElementAt(location.ToCoordsXYZ())->GetSurfaceStyle();
const uint32_t style = MapGetSurfaceElementAt(location.ToCoordsXYZ())->GetSurfaceObjectIndex();
if (style == forbiddenSurfaceStyle)
return ::testing::AssertionFailure()