From d25f4a6ba2582e2aa39d1a7d19734a929b8084a0 Mon Sep 17 00:00:00 2001 From: NT_x86 Date: Fri, 7 Oct 2022 12:10:24 +0300 Subject: [PATCH 1/2] Fix the timer going into the negatives when the game is running slowly --- src/source/DataModelV2/LevelInstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source/DataModelV2/LevelInstance.cpp b/src/source/DataModelV2/LevelInstance.cpp index 4b33578..08a25cc 100644 --- a/src/source/DataModelV2/LevelInstance.cpp +++ b/src/source/DataModelV2/LevelInstance.cpp @@ -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{ From a63aa521080a3e928f7819f85047e60606c5739f Mon Sep 17 00:00:00 2001 From: NT_x86 Date: Fri, 7 Oct 2022 16:32:07 +0300 Subject: [PATCH 2/2] Increment patch version number --- src/include/versioning.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/versioning.h b/src/include/versioning.h index 249ec95..35832dd 100644 --- a/src/include/versioning.h +++ b/src/include/versioning.h @@ -5,7 +5,7 @@ #define APP_GENER 0 #define APP_MAJOR 0 #define APP_MINOR 107 -#define APP_PATCH 1 +#define APP_PATCH 2 #define APP_VER_STRING APP_GENER.APP_MAJOR.APP_MINOR.APP_PATCH