fix offroad oopsie causing desynch
ye def not confusing at all to suddenly switch the meaning of floor and ceiling
This commit is contained in:
1 parent
7d71f2a360
commit
c2589d9ef1
1 file changed
+3
-2
+3
-2
@@ -1694,9 +1694,10 @@ static UINT8 K_CheckOffroadCollide(mobj_t *mo)
|
||||
checkfloor = (s2->flags & SF_FLIPSPECIAL_FLOOR);
|
||||
checkceiling = (s2->flags & SF_FLIPSPECIAL_CEILING);
|
||||
|
||||
if (checkfloor)
|
||||
flr = P_GetFOFBottomZ(mo, s, rover, mo->x, mo->y, NULL);
|
||||
// def not confusing at all.....
|
||||
if (checkceiling)
|
||||
flr = P_GetFOFBottomZ(mo, s, rover, mo->x, mo->y, NULL);
|
||||
if (checkfloor)
|
||||
cel = P_GetFOFTopZ(mo, s, rover, mo->x, mo->y, NULL); // Z coords for fof top/bottom.
|
||||
|
||||
// we will do essentially the same checks as above instead of bothering with top/bottom height of the FOF.
|
||||
|
||||
Reference in new issue
Block a user