Fix missing CHANF_OVERLAP flag.
This commit is contained in:
parent
4e47d7d97e
commit
0db8c75a1c
2 changed files with 3 additions and 3 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r102 \cu(Tue 7 Jun 19:30:57 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r102 \cu(2022-06-07 19:30:57)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r103 \cu(Tue 7 Jun 20:53:59 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r103 \cu(2022-06-07 20:53:59)\c-";
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ Class SWWMHealth : Inventory abstract
|
|||
if ( Owner.Health >= GetDefaultByType(giveme).MaxAmount ) return false;
|
||||
// healing items won't get auto-used on pickup if their healing could "be wasted", unless they're powerup health (e.g. Refresher)
|
||||
if ( pickup && !bBIGPOWERUP && (Owner.Health+GetDefaultByType(giveme).Amount > GetDefaultByType(giveme).MaxAmount) ) return false;
|
||||
if ( pickup && ((Owner.player == players[consoleplayer]) || bBigPowerup) ) Owner.A_StartSound(UseSound,CHAN_ITEMEXTRA);
|
||||
if ( pickup && ((Owner.player == players[consoleplayer]) || bBigPowerup) ) Owner.A_StartSound(UseSound,CHAN_ITEMEXTRA,CHANF_OVERLAP);
|
||||
SWWMHandler.HealthFlash(Owner.PlayerNumber());
|
||||
Owner.GiveInventory(giveme,GetDefaultByType(giveme).Amount);
|
||||
SWWMScoreObj.Spawn(GetDefaultByType(giveme).Amount,Owner.Vec3Offset(FRandom[ScoreBits](-8,8),FRandom[ScoreBits](-8,8),FRandom[ScoreBits](-8,8)+Owner.Height/2),ST_Health);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue