diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index c2125b1..08f5f35 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -18,7 +18,7 @@ #include "roommgr.h" const int ROOM_MAX_PLAYER_NUM = 50; -#if 0 +#if 1 const int ANDROID_NUM = 0; #else const int ANDROID_NUM = 10; diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index f36495b..c571870 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -42,7 +42,10 @@ void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg) } room->map_meta = MetaMgr::Instance()->GetMap(1001); room->Initialize(); + inactive_room_hash_[room->room_uuid] = room; room_hash_[room->room_uuid] = room; + } else { + int i = 0; } Player* hum = PlayerMgr::Instance()->CreatePlayerByCMJoin(hdr.socket_handle, msg); hum->meta = hum_meta;