mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
Merge pull request #349 from MajorCooke/RGFix
- Missing check for RGF_PLAYERS/VOODOO.
This commit is contained in:
commit
52bfc1eb41
1 changed files with 2 additions and 2 deletions
|
@ -5062,8 +5062,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RadiusGive)
|
||||||
bool killedPass = !!((flags & RGF_KILLED) && thing->flags6 & MF6_KILLED);
|
bool killedPass = !!((flags & RGF_KILLED) && thing->flags6 & MF6_KILLED);
|
||||||
bool monsterPass = !!((flags & RGF_MONSTERS) && thing->flags3 & MF3_ISMONSTER);
|
bool monsterPass = !!((flags & RGF_MONSTERS) && thing->flags3 & MF3_ISMONSTER);
|
||||||
bool objectPass = !!((flags & RGF_OBJECTS) && ((thing->flags & MF_SHOOTABLE) || (thing->flags6 & MF6_VULNERABLE)));
|
bool objectPass = !!((flags & RGF_OBJECTS) && ((thing->flags & MF_SHOOTABLE) || (thing->flags6 & MF6_VULNERABLE)));
|
||||||
bool playerPass = !!((flags & RGF_PLAYERS) && thing->player->mo == thing);
|
bool playerPass = !!((flags & RGF_PLAYERS) && (thing->player != NULL) && (thing->player->mo == thing));
|
||||||
bool voodooPass = !!((flags & RGF_VOODOO) && thing->player->mo != thing);
|
bool voodooPass = !!((flags & RGF_VOODOO) && (thing->player != NULL) && (thing->player->mo != thing));
|
||||||
//Self calls priority over the rest of this.
|
//Self calls priority over the rest of this.
|
||||||
if (!selfPass)
|
if (!selfPass)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue