Skip to content

Commit 29d642d

Browse files
committed
Readd Object.toggleObjectRespawn for backwards compatibility
1 parent 36c81f4 commit 29d642d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaObjectDefs.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ void CLuaObjectDefs::AddClass ( lua_State* luaVM )
5858
lua_classvariable ( luaVM, "breakable", "setObjectBreakable", "isObjectBreakable" );
5959
lua_classvariable ( luaVM, "mass", "setObjectMass", "getObjectMass" );
6060

61+
// Add deprecated methods for backwards compatibility
62+
lua_classfunction(luaVM, "toggleObjectRespawn", "toggleObjectRespawn");
63+
6164
lua_registerclass ( luaVM, "Object", "Element" );
6265
}
6366

0 commit comments

Comments
 (0)