- fixed portal handling for P_CheckMissileSpawn to obey commonly established rules about portal types.

This commit is contained in:
Christoph Oelckers 2017-07-20 18:32:54 +02:00
parent ffc529d100
commit e8e940d221

View file

@ -6718,7 +6718,7 @@ bool P_CheckMissileSpawn (AActor* th, double maxdist)
th->tics = 1;
}
DVector3 newpos = th->Pos();
DVector3 newpos = { 0,0,0 };
if (maxdist > 0)
{
@ -6736,6 +6736,9 @@ bool P_CheckMissileSpawn (AActor* th, double maxdist)
newpos += advance;
}
newpos = th->Vec3Offset(newpos);
th->SetXYZ(newpos);
FCheckPosition tm(!!(th->flags2 & MF2_RIP));
// killough 8/12/98: for non-missile objects (e.g. grenades)