Fixed incorrect armor given by cheats

See https://mantis.zdoom.org/view.php?id=106
This commit is contained in:
alexey.lysiuk 2017-01-23 13:18:30 +02:00
parent d0565cafbd
commit db4c5e090d

View file

@ -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 ();