Fixed the bug where the simulation would simply restart automatically

This commit is contained in:
2022-05-05 13:20:08 +02:00
parent f65b68ad92
commit 674eb9dc22
3 changed files with 19 additions and 19 deletions
+4 -14
View File
@@ -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;