From 2b6cfdec1d426ed1c45573b916b4bd5dcb53f8f2 Mon Sep 17 00:00:00 2001 From: olegv11 Date: Fri, 31 Jul 2015 12:42:40 +0300 Subject: [PATCH] Added a helper function footpath_element_is_wide --- src/world/footpath.c | 5 +++++ src/world/footpath.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/world/footpath.c b/src/world/footpath.c index a7cb85f7a0..5523cb401b 100644 --- a/src/world/footpath.c +++ b/src/world/footpath.c @@ -1427,6 +1427,11 @@ bool footpath_element_is_queue(rct_map_element *mapElement) return mapElement->type & 1; } +bool footpath_element_is_wide(rct_map_element *mapElement) +{ + return mapElement->type & 2; +} + /** * * rct2: 0x006A76E9 diff --git a/src/world/footpath.h b/src/world/footpath.h index fbd00b2d0c..450c8a38fc 100644 --- a/src/world/footpath.h +++ b/src/world/footpath.h @@ -70,6 +70,7 @@ int footpath_is_connected_to_map_edge(int x, int y, int z, int direction, int fl bool footpath_element_is_sloped(rct_map_element *mapElement); int footpath_element_get_slope_direction(rct_map_element *mapElement); bool footpath_element_is_queue(rct_map_element *mapElement); +bool footpath_element_is_wide(rct_map_element *mapElement); void footpath_remove_edges_at(int x, int y, rct_map_element *mapElement); #endif