Merge branch 'master' into new-netcode

This commit is contained in:
Regalis
2017-01-25 20:30:26 +02:00
17 changed files with 966 additions and 136 deletions
+7 -2
View File
@@ -397,8 +397,13 @@ namespace Barotrauma
if (value <= 0.0f)
{
if (huskInfection != null && huskInfection.State == HuskInfection.InfectionState.Active) return;
huskInfection = null;
if (huskInfection != null)
{
//already active, can't cure anymore
if (huskInfection.State == HuskInfection.InfectionState.Active) return;
huskInfection.Remove(this);
huskInfection = null;
}
}
else
{