1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00

Fix mistake and cleanup

This commit is contained in:
ζeh Matt
2021-09-30 15:34:22 +03:00
parent eb2de0222b
commit c492362e45

View File

@@ -5028,12 +5028,12 @@ void Guest::UpdateRideShopLeave()
if (auto loc = UpdateAction(); loc.has_value())
{
const auto curLoc = GetLocation();
MoveTo({ loc.value(), curLoc.z });
if ((curLoc.x & 0xFFE0) != NextLoc.x)
const auto newLoc = GetLocation().ToTileStart();
if (newLoc.x != NextLoc.x)
return;
if ((curLoc.y & 0xFFE0) != NextLoc.y)
if (newLoc.y != NextLoc.y)
return;
}