aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms
diff options
context:
space:
mode:
authorRogueAI42 <[email protected]>2017-06-29 21:01:56 +1000
committerRogueAI42 <[email protected]>2017-06-29 21:01:56 +1000
commit78b957eae90502a75d0254790479e50cc2cd7d7c (patch)
tree483dcecca34ec4351808a10facaf3455c2612c54 /ShiftOS.WinForms
parent95086532dcebbe7aeb3b900364afc5b3146e0910 (diff)
downloadshiftos_thereturn-78b957eae90502a75d0254790479e50cc2cd7d7c.tar.gz
shiftos_thereturn-78b957eae90502a75d0254790479e50cc2cd7d7c.tar.bz2
shiftos_thereturn-78b957eae90502a75d0254790479e50cc2cd7d7c.zip
fixed codepoints leach
Diffstat (limited to 'ShiftOS.WinForms')
-rw-r--r--ShiftOS.WinForms/Viruses/CPLeach.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/Viruses/CPLeach.cs b/ShiftOS.WinForms/Viruses/CPLeach.cs
index f9be0a2..9c610cd 100644
--- a/ShiftOS.WinForms/Viruses/CPLeach.cs
+++ b/ShiftOS.WinForms/Viruses/CPLeach.cs
@@ -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;