From 48fb16292a29ce25a284cbb4c431aab6136cd846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Fri, 17 Jan 2025 20:55:44 +0100 Subject: [PATCH] Fix some warnings --- src/PowderToySDL.cpp | 1 - src/client/GameSave.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index 96612dc10..c505311a9 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -480,7 +480,6 @@ void EngineProcess() engine.Tick(); { - auto drawLimit = ui::Engine::Ref().GetDrawingFrequencyLimit(); auto nowNs = uint64_t(SDL_GetTicks()) * UINT64_C(1'000'000); auto effectiveDrawLimit = engine.GetEffectiveDrawCap(); if (!effectiveDrawLimit || drawSchedule.HasElapsed(nowNs)) diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp index 30fbbc59b..53517a39e 100644 --- a/src/client/GameSave.cpp +++ b/src/client/GameSave.cpp @@ -2444,7 +2444,7 @@ std::pair> GameSave::serialiseOPS() const } if (part.type == PT_LSNS) { - if (part.tmp >= 1 || part.tmp <= 3) + if (part.tmp >= 1 && part.tmp <= 3) { RESTRICTVERSION(95, 0); }