This commit is contained in:
aozhiwei 2019-04-11 14:17:45 +08:00
parent be6c6e5272
commit 2d46bd1b64
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -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;