fixed codepoints leach

This commit is contained in:
RogueAI42 2017-06-29 21:01:56 +10:00
parent 95086532dc
commit 78b957eae9

View file

@ -19,7 +19,7 @@ namespace ShiftOS.WinForms.Viruses
Timer.Tick += (o, a) =>
{
ulong codepointDecrease = (ulong)threatlevel * 4;
if (SaveSystem.CurrentSave.Codepoints <= codepointDecrease)
if (SaveSystem.CurrentSave.Codepoints > codepointDecrease)
SaveSystem.CurrentSave.Codepoints -= codepointDecrease;
else
SaveSystem.CurrentSave.Codepoints = 0;