From b0f1e9b8f301149603b105e4083daef99a24c2af Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 28 Feb 2016 12:16:58 +0100 Subject: [PATCH] - fixed typo in portal blockmap code. --- src/portal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/portal.cpp b/src/portal.cpp index cd501513a7..addb929685 100644 --- a/src/portal.cpp +++ b/src/portal.cpp @@ -711,7 +711,7 @@ fixedvec2 P_GetOffsetPosition(AActor *actor, fixed_t dx, fixed_t dy) if (dx < 128 * FRACUNIT && dy < 128 * FRACUNIT) { fixed_t blockx = GetSafeBlockX(actx - bmaporgx); - fixed_t blocky = GetSafeBlockX(acty - bmaporgy); + fixed_t blocky = GetSafeBlockY(acty - bmaporgy); if (blockx < 0 || blocky < 0 || blockx >= bmapwidth || blocky >= bmapheight || !PortalBlockmap(blockx, blocky).neighborContainsLines) return dest; }