From 8a5427abed2ff67fdc99e36ac6b29c0c4a54cbdb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 25 Jul 2020 17:25:21 +0200 Subject: [PATCH] - fixed the cheat handler. --- source/core/cheathandler.cpp | 2 +- source/libsmackerdec/src/SmackerDecoder.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/core/cheathandler.cpp b/source/core/cheathandler.cpp index 085a2f57e..bdd9e215f 100644 --- a/source/core/cheathandler.cpp +++ b/source/core/cheathandler.cpp @@ -104,7 +104,7 @@ bool Cheat_Responder (event_t *ev) { if (CheatAddKey (cheats, (uint8_t)ev->data2, &eat)) { - if (cheats->DontCheck || !CheckCheatmode ()) + if (cheats->DontCheck || CheckCheatmode ()) { eat |= cheats->Handler (cheats); } diff --git a/source/libsmackerdec/src/SmackerDecoder.cpp b/source/libsmackerdec/src/SmackerDecoder.cpp index b210871a3..7b00caed8 100644 --- a/source/libsmackerdec/src/SmackerDecoder.cpp +++ b/source/libsmackerdec/src/SmackerDecoder.cpp @@ -46,6 +46,7 @@ #include "HuffmanVLC.h" #include "LogError.h" #include "printf.h" +#include "limits.h" #include #include