Fix the timer going into the negatives when the game is running slowly

This commit is contained in:
NT_x86
2022-10-07 12:10:24 +03:00
parent b7ed5bd832
commit d25f4a6ba2

View File

@@ -217,7 +217,7 @@ void LevelInstance::Step(SimTime sdt)
score -= 1;
break;
}
if (timer >= 0.1f){ //Due to timing used this could cause the number go into negatives for one step
if (timer >= sdt){
timer -= sdt;
}
else{