mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
Fixed incorrect damage flags' checks for A_Kill...() functions
Only GCC 7 reported this as a warning but only for one occurrence: src/p_actionfunctions.cpp:5909:22: warning: enum constant in boolean context [-Wint-in-bool-context]
This commit is contained in:
parent
d645e55545
commit
c7d28b0a24
1 changed files with 2 additions and 2 deletions
|
@ -5904,9 +5904,9 @@ static void DoKill(AActor *killtarget, AActor *inflictor, AActor *source, FName
|
|||
{
|
||||
int dmgFlags = DMG_NO_ARMOR | DMG_NO_FACTOR;
|
||||
|
||||
if (KILS_FOILINVUL)
|
||||
if (flags & KILS_FOILINVUL)
|
||||
dmgFlags |= DMG_FOILINVUL;
|
||||
if (KILS_FOILBUDDHA)
|
||||
if (flags & KILS_FOILBUDDHA)
|
||||
dmgFlags |= DMG_FOILBUDDHA;
|
||||
|
||||
if ((killtarget->flags & MF_MISSILE) && (flags & KILS_KILLMISSILES))
|
||||
|
|
Loading…
Reference in a new issue