mirror of https://github.com/OpenRCT2/OpenRCT2.git
commit
86206d83c5
|
@ -52,8 +52,7 @@ static const uint16 EntranceDirections[] = {
|
||||||
static int entrance_get_directions(rct_map_element *mapElement)
|
static int entrance_get_directions(rct_map_element *mapElement)
|
||||||
{
|
{
|
||||||
uint8 entranceType = mapElement->properties.entrance.type;
|
uint8 entranceType = mapElement->properties.entrance.type;
|
||||||
uint8 sequence = mapElement->properties.entrance.index & 0x0F;
|
return EntranceDirections[(entranceType * 8)];
|
||||||
return EntranceDirections[(entranceType * 8) + sequence];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool entrance_has_direction(rct_map_element *mapElement, int direction)
|
static bool entrance_has_direction(rct_map_element *mapElement, int direction)
|
||||||
|
|
Loading…
Reference in New Issue