mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 21:41:03 +00:00
- fixed typo in portal blockmap code.
This commit is contained in:
parent
9e3bde0913
commit
b0f1e9b8f3
1 changed files with 1 additions and 1 deletions
|
@ -711,7 +711,7 @@ fixedvec2 P_GetOffsetPosition(AActor *actor, fixed_t dx, fixed_t dy)
|
||||||
if (dx < 128 * FRACUNIT && dy < 128 * FRACUNIT)
|
if (dx < 128 * FRACUNIT && dy < 128 * FRACUNIT)
|
||||||
{
|
{
|
||||||
fixed_t blockx = GetSafeBlockX(actx - bmaporgx);
|
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;
|
if (blockx < 0 || blocky < 0 || blockx >= bmapwidth || blocky >= bmapheight || !PortalBlockmap(blockx, blocky).neighborContainsLines) return dest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue