- some redesign of P_CheckSight to handle portals.

Portal stuff not tested yet.
This commit is contained in:
Christoph Oelckers 2016-03-07 21:58:34 +01:00
commit 3c25b2c066
11 changed files with 268 additions and 65 deletions

View file

@ -3285,7 +3285,7 @@ void AActor::SetRoll(angle_t r, bool interpolate)
}
fixedvec3 AActor::GetPortalTransition(fixed_t byoffset)
fixedvec3 AActor::GetPortalTransition(fixed_t byoffset, sector_t **pSec)
{
bool moved = false;
sector_t *sec = Sector;
@ -3316,6 +3316,7 @@ fixedvec3 AActor::GetPortalTransition(fixed_t byoffset)
else break;
}
}
if (pSec) *pSec = sec;
return pos;
}