aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2010-09-18 09:43:16 +0000
committerEugene Sandulenko2010-10-12 23:57:05 +0000
commit017d461b3a1edcd83ba78133cb62cb943f2005c6 (patch)
tree9f035eea0321ddbb8fe29b4c830f53417107d7c8 /engines
parent2a918b794aeef5671d6d5ac85fe169c94ef55427 (diff)
downloadscummvm-rg350-017d461b3a1edcd83ba78133cb62cb943f2005c6.tar.gz
scummvm-rg350-017d461b3a1edcd83ba78133cb62cb943f2005c6.tar.bz2
scummvm-rg350-017d461b3a1edcd83ba78133cb62cb943f2005c6.zip
SWORD25: Fix bug with script debug flags
svn-id: r53369
Diffstat (limited to 'engines')
-rw-r--r--engines/sword25/script/luascript.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword25/script/luascript.cpp b/engines/sword25/script/luascript.cpp
index d57bd5e7b0..8e65010298 100644
--- a/engines/sword25/script/luascript.cpp
+++ b/engines/sword25/script/luascript.cpp
@@ -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)