Add unsaved comments

This commit is contained in:
NT_x86
2022-10-05 13:19:05 +03:00
parent 48e65358f4
commit 932de58185

View File

@@ -191,12 +191,12 @@ void LevelInstance::Step(SimTime sdt)
score -= 1;
break;
}
if (timer >= 0.1f){
if (timer >= 0.1f){ //Due to timing used this could cause the number go into negatives for one step
timer -= sdt;
}
else{
timer = 0.0f;
DataModelInstance* DataModel = (DataModelInstance*)getParent();
DataModelInstance* DataModel = (DataModelInstance*)getParent(); //If level parent gets changed to something other than Datamodel it could cause nasty data corruption bugs
switch(TimerUpAction)
{
case Enum::ActionType::Nothing: