From 932de58185dc1d649dbc37c19ceb41ceaafffcd7 Mon Sep 17 00:00:00 2001 From: NT_x86 Date: Wed, 5 Oct 2022 13:19:05 +0300 Subject: [PATCH] Add unsaved comments --- src/source/DataModelV2/LevelInstance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/source/DataModelV2/LevelInstance.cpp b/src/source/DataModelV2/LevelInstance.cpp index ed8acc4..4867c5d 100644 --- a/src/source/DataModelV2/LevelInstance.cpp +++ b/src/source/DataModelV2/LevelInstance.cpp @@ -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: