From b13f499d5b22030c4bc402b723fe77c225b0962f Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Sun, 12 Jun 2016 19:01:16 +0200 Subject: [PATCH] Fix typo in enum value --- src/peep/peep.c | 2 +- src/world/footpath.c | 2 +- src/world/scenery.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/peep/peep.c b/src/peep/peep.c index 2e03469daf..0af4b4eade 100644 --- a/src/peep/peep.c +++ b/src/peep/peep.c @@ -626,7 +626,7 @@ static void sub_68F41A(rct_peep *peep, int index) if (footpath_element_has_path_scenery(mapElement) && footpath_element_path_scenery_is_ghost(mapElement)){ uint8 pathSceneryIndex = footpath_element_get_path_scenery_index(mapElement); rct_scenery_entry *sceneryEntry = get_footpath_item_entry(pathSceneryIndex); - if (sceneryEntry->path_bit.flags & PAHT_BIT_FLAG_IS_QUEUE_SCREEN){ + if (sceneryEntry->path_bit.flags & PATH_BIT_FLAG_IS_QUEUE_SCREEN){ found = 1; } } diff --git a/src/world/footpath.c b/src/world/footpath.c index 79f5da12e0..a16b140d62 100644 --- a/src/world/footpath.c +++ b/src/world/footpath.c @@ -243,7 +243,7 @@ static money32 footpath_element_update(int x, int y, rct_map_element *mapElement return MONEY32_UNDEFINED; } - if ((unk6 & PAHT_BIT_FLAG_IS_QUEUE_SCREEN) && !footpath_element_is_queue(mapElement)) { + if ((unk6 & PATH_BIT_FLAG_IS_QUEUE_SCREEN) && !footpath_element_is_queue(mapElement)) { gGameCommandErrorText = STR_CAN_ONLY_PLACE_THESE_ON_QUEUE_AREA; return MONEY32_UNDEFINED; } diff --git a/src/world/scenery.h b/src/world/scenery.h index 741e5d758d..9a2f5e990b 100644 --- a/src/world/scenery.h +++ b/src/world/scenery.h @@ -188,7 +188,7 @@ enum { PATH_BIT_FLAG_JUMPING_FOUNTAIN_SNOW = 1 << 5, PATH_BIT_FLAG_DONT_ALLOW_ON_QUEUE = 1 << 6, PATH_BIT_FLAG_DONT_ALLOW_ON_SLOPE = 1 << 7, - PAHT_BIT_FLAG_IS_QUEUE_SCREEN = 1 << 8 + PATH_BIT_FLAG_IS_QUEUE_SCREEN = 1 << 8 }; enum {