Skip to content

Commit

Permalink
Fixed incorrect armor given by cheats
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Jan 23, 2017
1 parent d0565ca commit db4c5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/shared/player_cheat.txt
Expand Up @@ -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 ();
Expand Down

0 comments on commit db4c5e0

Please sign in to comment.