Fixed the bug where the simulation would simply restart automatically
This commit is contained in:
@@ -169,27 +169,17 @@ namespace PropagationRemasteredBeta
|
||||
{
|
||||
//we also send the random so if one day we want to add a seed feature it will also affect the transmission
|
||||
switch (Population[width, height].State)
|
||||
{
|
||||
case Human.INFECTED:
|
||||
Population[width, height].Propagate(this);
|
||||
break;
|
||||
default:
|
||||
//nothing to do for now
|
||||
break;
|
||||
}
|
||||
|
||||
//only for stats purposes
|
||||
switch (Population[width, height].State)
|
||||
{
|
||||
case Human.SAIN:
|
||||
SainCount[SimulationDuration] += 1;
|
||||
break;
|
||||
case Human.INFECTED:
|
||||
Population[width, height].Propagate(this);
|
||||
InfectedCount[SimulationDuration] += 1;
|
||||
break;
|
||||
case Human.IMMUNE:
|
||||
ImmuneCount[SimulationDuration] += 1;
|
||||
break;
|
||||
case Human.INFECTED:
|
||||
InfectedCount[SimulationDuration] += 1;
|
||||
break;
|
||||
case Human.DEAD:
|
||||
DeadCount[SimulationDuration] += 1;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user