for cases where we take a number as a boolean, accept a boolean

false as false (to transition away from numbers)
This commit is contained in:
Glenn Maynard
2006-10-15 08:17:35 +00:00
parent 28df192f43
commit 2cede5a421
4 changed files with 28 additions and 12 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ class LunaRageTexture: public Luna<RageTexture>
{
public:
static int position( T* p, lua_State *L ) { p->SetPosition( FArg(1) ); return 0; }
static int loop( T* p, lua_State *L ) { p->SetLooping( !!IArg(1) ); return 0; }
static int loop( T* p, lua_State *L ) { p->SetLooping( BIArg(1) ); return 0; }
static int rate( T* p, lua_State *L ) { p->SetPlaybackRate( FArg(1) ); return 0; }
LunaRageTexture()