From ef8d43328af2312c8babffa0c72ced229f0a3e1b Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Thu, 11 Aug 2016 18:29:44 +0200 Subject: [PATCH] Name WallSceneryFlag --- src/world/map.c | 2 +- src/world/scenery.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world/map.c b/src/world/map.c index 014edbe3ee..8bb4bab3a8 100644 --- a/src/world/map.c +++ b/src/world/map.c @@ -3526,7 +3526,7 @@ void game_command_place_fence(int* eax, int* ebx, int* ecx, int* edx, int* esi, RCT2_GLOBAL(0x00141F722, uint8) = position.z / 8; if (bp & (EDGE_SLOPE_UPWARDS | EDGE_SLOPE_DOWNWARDS)) { - if (fence->wall.flags & WALL_SCENERY_FLAG3){ + if (fence->wall.flags & WALL_SCENERY_CANT_BUILD_ON_SLOPE){ gGameCommandErrorText = STR_ERR_UNABLE_TO_BUILD_THIS_ON_SLOPE; *ebx = MONEY32_UNDEFINED; return; diff --git a/src/world/scenery.h b/src/world/scenery.h index 6e95c654a8..24eb0f4109 100644 --- a/src/world/scenery.h +++ b/src/world/scenery.h @@ -124,7 +124,7 @@ assert_struct_size(rct_wall_scenery_entry, 8); typedef enum { WALL_SCENERY_FLAG1 = (1 << 0), // 0x1 WALL_SCENERY_FLAG2 = (1 << 1), // 0x2 - WALL_SCENERY_FLAG3 = (1 << 2), // 0x4 + WALL_SCENERY_CANT_BUILD_ON_SLOPE = (1 << 2), // 0x4 WALL_SCENERY_FLAG4 = (1 << 3), // 0x8 // Probably indicates translucency WALL_SCENERY_IS_DOOR = (1 << 4), // 0x10 WALL_SCENERY_FLAG6 = (1 << 5), // 0x20