mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 16:41:22 +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"));
|
let armoritem = BasicArmorPickup(Spawn("BasicArmorPickup"));
|
||||||
armoritem.SaveAmount = 100*deh.BlueAC;
|
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))
|
if (!armoritem.CallTryPickup (self))
|
||||||
{
|
{
|
||||||
armoritem.Destroy ();
|
armoritem.Destroy ();
|
||||||
|
|
Loading…
Reference in a new issue