Skip to content

Commit

Permalink
- fixed portal handling for P_CheckMissileSpawn to obey commonly esta…
Browse files Browse the repository at this point in the history
…blished rules about portal types.
  • Loading branch information
coelckers committed Jul 20, 2017
1 parent ffc529d commit e8e940d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/p_mobj.cpp
Expand Up @@ -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)
{
Expand All @@ -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)
Expand Down

0 comments on commit e8e940d

Please sign in to comment.