mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00
SWORD25: Fix bug with script debug flags
svn-id: r53369
This commit is contained in:
parent
2a918b794a
commit
017d461b3a
@ -152,11 +152,11 @@ bool LuaScriptEngine::Init() {
|
||||
// Initialize debugging callback
|
||||
if (DebugMan.isDebugChannelEnabled(kDebugScript)) {
|
||||
int mask = 0;
|
||||
if (gDebugLevel == 1)
|
||||
if ((gDebugLevel & 1) != 0)
|
||||
mask |= LUA_MASKCALL;
|
||||
if (gDebugLevel == 2)
|
||||
if ((gDebugLevel & 2) != 0)
|
||||
mask |= LUA_MASKRET;
|
||||
if (gDebugLevel == 4)
|
||||
if ((gDebugLevel & 4) != 0)
|
||||
mask |= LUA_MASKLINE;
|
||||
|
||||
if (mask != 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user