mirror of https://github.com/OpenRCT2/OpenRCT2.git
Name WallSceneryFlag
This commit is contained in:
parent
be1e832873
commit
ef8d43328a
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue