From 4602ae331fa0f8b95bd038a063f380cc287d67a7 Mon Sep 17 00:00:00 2001 From: Sour Date: Sun, 5 Jan 2020 15:31:46 -0500 Subject: [PATCH] Debugger: Lua - Fixed draw commands not being permanent when frame count is set to 0 --- Core/DrawCommand.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/DrawCommand.h b/Core/DrawCommand.h index b6f1690..ead95eb 100644 --- a/Core/DrawCommand.h +++ b/Core/DrawCommand.h @@ -66,7 +66,7 @@ protected: public: DrawCommand(int startFrame, int frameCount, bool useIntegerScaling = false) { - _frameCount = frameCount > 0 ? frameCount : 1; + _frameCount = frameCount > 0 ? frameCount : -1; _startFrame = startFrame; _useIntegerScaling = useIntegerScaling; } @@ -92,6 +92,6 @@ public: bool Expired() { - return _frameCount <= 0; + return _frameCount == 0; } };