- some redesign of P_CheckSight to handle portals.
Portal stuff not tested yet.
This commit is contained in:
parent
f82c217047
commit
3c25b2c066
11 changed files with 268 additions and 65 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue