mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- fixed: Powerup.Strength is a fixed point value, so using it as health amount for PowerRegeneration requires division by FRACUNIT.
This commit is contained in:
parent
c5cba70fc8
commit
35764ff3b2
1 changed files with 1 additions and 1 deletions
|
@ -1697,7 +1697,7 @@ void APowerRegeneration::DoEffect()
|
||||||
{
|
{
|
||||||
if (Owner != NULL && Owner->health > 0 && (level.time & 31) == 0)
|
if (Owner != NULL && Owner->health > 0 && (level.time & 31) == 0)
|
||||||
{
|
{
|
||||||
if (P_GiveBody(Owner, Strength))
|
if (P_GiveBody(Owner, Strength/FRACUNIT))
|
||||||
{
|
{
|
||||||
S_Sound(Owner, CHAN_ITEM, "*regenerate", 1, ATTN_NORM );
|
S_Sound(Owner, CHAN_ITEM, "*regenerate", 1, ATTN_NORM );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue