mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 14:41:40 +00:00
- 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:
parent
1bc8fe7312
commit
2e670ae71d
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue