[Scummvm-cvs-logs] SF.net SVN: scummvm:[53369] scummvm/trunk/engines/sword25/script/luascript. cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Wed Oct 13 01:57:05 CEST 2010
Revision: 53369
http://scummvm.svn.sourceforge.net/scummvm/?rev=53369&view=rev
Author: sev
Date: 2010-10-12 23:57:05 +0000 (Tue, 12 Oct 2010)
Log Message:
-----------
SWORD25: Fix bug with script debug flags
Modified Paths:
--------------
scummvm/trunk/engines/sword25/script/luascript.cpp
Modified: scummvm/trunk/engines/sword25/script/luascript.cpp
===================================================================
--- scummvm/trunk/engines/sword25/script/luascript.cpp 2010-10-12 23:56:47 UTC (rev 53368)
+++ scummvm/trunk/engines/sword25/script/luascript.cpp 2010-10-12 23:57:05 UTC (rev 53369)
@@ -152,11 +152,11 @@
// 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)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list