Replaced a block of code in setup_server.lua with one line

This commit is contained in:
Kayne Ruse
2015-01-11 20:12:50 +11:00
parent d0b2f8e12f
commit 9f3721247d
4 changed files with 4 additions and 72 deletions
+1 -3
View File
@@ -66,10 +66,8 @@ static int getWaypointMgr(lua_State* L) {
}
static int initialize(lua_State* L) {
//set the members of the given room
//TODO: This could fit into the room system's globals
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));