mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 23:42:11 +00:00
Merge branch 'no-fire-shield-palflash' into 'next'
No fire shield palflash (resolves #512) Closes #512 See merge request STJr/SRB2!1473
This commit is contained in:
commit
58a070ca03
1 changed files with 3 additions and 5 deletions
|
@ -3286,11 +3286,9 @@ void P_MobjCheckWater(mobj_t *mobj)
|
|||
boolean electric = !!(p->powers[pw_shield] & SH_PROTECTELECTRIC);
|
||||
if (electric || ((p->powers[pw_shield] & SH_PROTECTFIRE) && !(p->powers[pw_shield] & SH_PROTECTWATER) && !(mobj->eflags & MFE_TOUCHLAVA)))
|
||||
{ // Water removes electric and non-water fire shields...
|
||||
P_FlashPal(p,
|
||||
electric
|
||||
? PAL_WHITE
|
||||
: PAL_NUKE,
|
||||
1);
|
||||
if (electric)
|
||||
P_FlashPal(p, PAL_WHITE, 1);
|
||||
|
||||
p->powers[pw_shield] = p->powers[pw_shield] & SH_STACK;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue