mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
A_RadiusGive Missile check fix
- Don't use isMissile(). Check directly for the flag at the moment of calling and not the default. Otherwise, things changing themselves will still be ineligible for non-missile checks.
This commit is contained in:
parent
49bfe717ce
commit
c3ffeb1e9d
1 changed files with 2 additions and 2 deletions
|
@ -5381,13 +5381,13 @@ enum RadiusGiveFlags
|
|||
static bool DoRadiusGive(AActor *self, AActor *thing, PClassActor *item, int amount, fixed_t distance, int flags, PClassActor *filter, FName species, fixed_t mindist)
|
||||
{
|
||||
// [MC] We only want to make an exception for missiles here. Nothing else.
|
||||
bool missilePass = !!((flags & RGF_MISSILES) && thing->isMissile());
|
||||
bool missilePass = !!((flags & RGF_MISSILES) && thing->flags & MF_MISSILE);
|
||||
if (thing == self)
|
||||
{
|
||||
if (!(flags & RGF_GIVESELF))
|
||||
return false;
|
||||
}
|
||||
else if (thing->isMissile())
|
||||
else if (thing->flags & MF_MISSILE)
|
||||
{
|
||||
if (!missilePass)
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue