Fix the timer going into the negatives when the game is running slowly
This commit is contained in:
@@ -217,7 +217,7 @@ void LevelInstance::Step(SimTime sdt)
|
|||||||
score -= 1;
|
score -= 1;
|
||||||
break;
|
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;
|
timer -= sdt;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
Reference in New Issue
Block a user