- fixed: When offsetting the projectile for testing, P_CheckMissileSpawn must also reset the projectile's sector to its new location.

If this isn't done the portal checks may fail and create incorrect positioning info.
This commit is contained in:
Christoph Oelckers 2017-08-27 09:16:04 +02:00
parent 1bc8fe7312
commit 2e670ae71d
1 changed files with 1 additions and 0 deletions

View File

@ -6745,6 +6745,7 @@ bool P_CheckMissileSpawn (AActor* th, double maxdist)
newpos = th->Vec3Offset(newpos);
th->SetXYZ(newpos);
th->Sector = P_PointInSector(th->Pos());
FCheckPosition tm(!!(th->flags2 & MF2_RIP));