change BArg to look for a Lua boolean type

This commit is contained in:
Chris Danford
2005-02-17 21:34:46 +00:00
parent 0457317a6f
commit 09f19b9d0c
4 changed files with 17 additions and 12 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class LunaActorFrame : public LunaActor<T>
public:
LunaActorFrame() { LUA->Register( Register ); }
static int propagate( T* p, lua_State *L ) { p->SetPropagateCommands( BArg(1) ); return 0; }
static int propagate( T* p, lua_State *L ) { p->SetPropagateCommands( !!IArg(1) ); return 0; }
static void Register(lua_State *L)
{