Allow passing a lua_State to PushStack; make them static.
Add SetGlobal(bool), UnsetGlobal, PushStackNil. Pass lua_State* to LUA_RETURN.
This commit is contained in:
@@ -1897,7 +1897,7 @@ int LuaFunc_UsingModifier( lua_State *L )
|
||||
|
||||
const PlayerNumber pn = (PlayerNumber) (int(lua_tonumber( L, 1 ))-1);
|
||||
const CString modifier = lua_tostring( L, 2 );
|
||||
LUA_RETURN( PlayerIsUsingModifier( pn, modifier ) );
|
||||
LUA_RETURN( PlayerIsUsingModifier( pn, modifier ), L );
|
||||
}
|
||||
LuaFunction( UsingModifier );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user