1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Merge pull request #849 from duncanspumpkin/fix_peep

Fix peeps leaving queues
This commit is contained in:
Ted John
2015-02-21 11:07:03 +00:00

View File

@@ -436,7 +436,7 @@ void peep_update_falling(rct_peep* peep){
int height = map_height_from_slope(peep->x, peep->y, map_element->properties.surface.slope)
+ map_element->base_height * 8;
if (height < peep->z - 1 || height - 4 > peep->z) continue;
if (height < peep->z - 1 || height > peep->z + 4) continue;
saved_height = height;
saved_map = map_element;
@@ -504,7 +504,7 @@ void peep_update_falling(rct_peep* peep){
peep->next_z = saved_map->base_height;
int edx = saved_map->properties.surface.slope & 0x7;
if (saved_map->type != MAP_ELEMENT_TYPE_PATH){
if (map_element_get_type(saved_map) != MAP_ELEMENT_TYPE_PATH){
edx = 8;
}
peep->next_var_29 = edx;