- fixed typo in portal blockmap code.

This commit is contained in:
Christoph Oelckers 2016-02-28 12:16:58 +01:00
parent 9e3bde0913
commit b0f1e9b8f3

View file

@ -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;
}