Don't set globals for params. This was previously used for filenames. Use P.name.

This commit is contained in:
Glenn Maynard
2006-10-13 03:34:44 +00:00
parent 82511f9ef5
commit 5cdf0e8d7e
-6
View File
@@ -150,12 +150,6 @@ void ActorUtil::SetParamFromStack( Lua *L, RString sName, LuaReference *pOld )
pOld->SetFromStack( L );
}
/* Backwards-compatibility: set the value as a global. This is strongly
* deprecated. */
lua_pushvalue( L, iName );
lua_pushvalue( L, iValue );
lua_rawset( L, LUA_GLOBALSINDEX );
/* Set the value in the table. */
lua_pushvalue( L, iName );
lua_pushvalue( L, iValue );