Added PushEntity() & PopEntity() to RoomManager

Calling them from server_character_methods.cpp.
This commit is contained in:
Kayne Ruse
2015-01-01 02:50:52 +11:00
parent 963aca218a
commit ebd8e54725
6 changed files with 57 additions and 2 deletions
-2
View File
@@ -56,8 +56,6 @@ static int getPager(lua_State* L) {
static int initialize(lua_State* L) {
//set the members of the given room
RoomData* room = static_cast<RoomData*>(lua_touserdata(L, 1));
room->SetName(lua_tostring(L, 2));
room->SetTileset(lua_tostring(L, 3));
//set the refs of these parameters (backwards, since it pops from the top of the stack)
room->GetPager()->SetUnloadReference(luaL_ref(L, LUA_REGISTRYINDEX));