From 2e670ae71db33bc0c9cb1948fd506caf5457543c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 27 Aug 2017 09:16:04 +0200 Subject: [PATCH] - 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. --- src/p_mobj.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index daa8b5aa4..f907ba12f 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -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));