mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 12:32:34 +00:00
- fixed portal handling for P_CheckMissileSpawn to obey commonly established rules about portal types.
This commit is contained in:
parent
ffc529d100
commit
e8e940d221
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue