Fix beam projectiles being missing from minimap.

This commit is contained in:
Mari the Deer 2023-10-03 21:52:25 +02:00
commit 191adb9e2a
2 changed files with 3 additions and 5 deletions

View file

@ -289,7 +289,7 @@ extend Class SWWMHandler
}
else rv = a.pos.xy-players[consoleplayer].Camera.pos.xy;
double rad;
bool isproj = a.bMISSILE;
bool isproj = a.bMISSILE&&SWWMUtility.ValidProjectile(a);
if ( SWWMUtility.IsBeamProj(a) )
{
isproj = true;
@ -310,8 +310,6 @@ extend Class SWWMHandler
continue;
if ( (a is 'Inventory') && (!a.bSPECIAL || Inventory(a).Owner || (a.GetClassName() == 'aas_token')) ) // autoautosave hotfix
continue;
if ( isproj && !SWWMUtility.ValidProjectile(a) )
continue;
if ( (a is 'Chancebox') && (a.CurState != a.SpawnState) )
continue;
if ( isproj && !level.allmap && !(a.target && a.target.IsFriend(players[consoleplayer].mo)) && !a.CheckSight(players[consoleplayer].Camera,SF_IGNOREVISIBILITY|SF_IGNOREWATERBOUNDARY) )