From c8063a3c38cd350b3e4642d30a15ea8eac499d5a Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 17 Sep 2018 20:03:56 +0200 Subject: [PATCH] Fix scenery doors closing the wrong --- src/openrct2/ride/Vehicle.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/openrct2/ride/Vehicle.cpp b/src/openrct2/ride/Vehicle.cpp index 2db3b8a3ea..71ed31744c 100644 --- a/src/openrct2/ride/Vehicle.cpp +++ b/src/openrct2/ride/Vehicle.cpp @@ -7453,7 +7453,6 @@ static void vehicle_update_scenery_door(rct_vehicle* vehicle) if (vehicle->next_vehicle_on_train != SPRITE_INDEX_NULL) { - // FIXME: Likely an implementation typo, should probably be true! tileElement->AsWall()->SetAnimationIsBackwards(false); tileElement->AsWall()->SetAnimationFrame(1); map_animation_create(MAP_ANIMATION_TYPE_WALL_DOOR, x, y, z); @@ -7541,7 +7540,7 @@ static void vehicle_update_handle_scenery_door(rct_vehicle* vehicle) } else { - tileElement->AsWall()->SetAnimationIsBackwards(false); + tileElement->AsWall()->SetAnimationIsBackwards(true); tileElement->AsWall()->SetAnimationFrame(6); vehicle_play_scenery_door_close_sound(vehicle, tileElement); }