Fix #1025 and some P_PathTraverse bugs
1 unresolved thread
1 unresolved thread
This MR is a standalone version of the blockmap fixes from !2389:
- Fixes #1025 (closed) by adding a new argument to P_BlockThingsIterator that takes an
mobj_t
and checks for it, instead of just checking fortmthing
. - Fixes a few bugs with P_PathTraverse:
- Ports over a couple of fixes regarding path traversal from ZDoom (traversing through blockmap corners, etc.).
- Fixes incorrect calculation(s) of
partial
(nowpartialx
andpartialy
),xstep
,ystep
,xintercept
, andyintercept
. - Path traversals can now go beyond a map's blockmap limit, granted they stay within the hardcoded limit of 65536x65536.
Merge request reports
Activity
Filter activity
changed milestone to %2.2.15
added Bug label
added 18 commits
-
f836f9e1...14606ebe - 17 commits from branch
STJr:next
- 2b8190bb - Fix merge conflits
-
f836f9e1...14606ebe - 17 commits from branch
added 1 commit
- 14d5e3f7 - Replace tmthing in P_BlockThingsIterator with thing
changed milestone to %2.2.16
added 154 commits
-
14d5e3f7...e7970fc5 - 153 commits from branch
STJr:next
- fe0fd35b - Merge branch SRB2:next into fix-blockmap-bugs
-
14d5e3f7...e7970fc5 - 153 commits from branch
added 58 commits
-
fe0fd35b...8701ef41 - 57 commits from branch
STJr:next
- 0e22c792 - Merge branch SRB2:next into fix-blockmap-bugs
-
fe0fd35b...8701ef41 - 57 commits from branch
mentioned in commit f096e569
1469 1473 trace.y = py1; 1470 1474 trace.dx = px2 - px1; 1471 1475 trace.dy = py2 - py1; 1472 1473 px1 -= bmaporgx; 1474 py1 -= bmaporgy; 1475 xt1 = (unsigned)px1>>MAPBLOCKSHIFT; 1476 yt1 = (unsigned)py1>>MAPBLOCKSHIFT; 1477 1478 px2 -= bmaporgx; 1479 py2 -= bmaporgy; 1480 xt2 = (unsigned)px2>>MAPBLOCKSHIFT; 1481 yt2 = (unsigned)py2>>MAPBLOCKSHIFT; 1476 1477 xt1 = px1>>MAPBLOCKSHIFT; 1478 yt1 = py2>>MAPBLOCKSHIFT; I messed up here. The line is supposed to bit shift
py1
instead ofpy2
. This fix has already been applied to !2389, but I can make a new MR for it if necessary.
Please register or sign in to reply