mirror of
https://github.com/SourMesen/Mesen.git
synced 2024-06-01 19:08:17 -04:00
Debugger: Lua - Fixed draw commands not being permanent when frame count is set to 0
This commit is contained in:
parent
901099307b
commit
f1c48acdfe
|
@ -67,7 +67,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;
|
||||
}
|
||||
|
@ -93,6 +93,6 @@ public:
|
|||
|
||||
bool Expired()
|
||||
{
|
||||
return _frameCount <= 0;
|
||||
return _frameCount == 0;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue