mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Fixed incorrect armor given by cheats
See https://mantis.zdoom.org/view.php?id=106
This commit is contained in:
parent
d0565cafbd
commit
db4c5e090d
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ extend class PlayerPawn
|
|||
{
|
||||
let armoritem = BasicArmorPickup(Spawn("BasicArmorPickup"));
|
||||
armoritem.SaveAmount = 100*deh.BlueAC;
|
||||
armoritem.SavePercent = gameinfo.Armor2Percent > 0? gameinfo.Armor2Percent : 0.5;
|
||||
armoritem.SavePercent = gameinfo.Armor2Percent > 0 ? gameinfo.Armor2Percent * 100 : 50;
|
||||
if (!armoritem.CallTryPickup (self))
|
||||
{
|
||||
armoritem.Destroy ();
|
||||
|
|
Loading…
Reference in a new issue