移除无用代码
This commit is contained in:
parent
60eae8ce35
commit
c0d76cd0a1
@ -86,28 +86,10 @@ void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg)
|
|||||||
if (GetRoomByUuid(room->room_uuid)) {
|
if (GetRoomByUuid(room->room_uuid)) {
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
#if 1
|
|
||||||
room->map_meta = MetaMgr::Instance()->GetMap(2001);
|
room->map_meta = MetaMgr::Instance()->GetMap(2001);
|
||||||
#else
|
|
||||||
if (f8::IsOnlineEnv()) {
|
|
||||||
room->map_meta = MetaMgr::Instance()->GetMap(1001);
|
|
||||||
} else {
|
|
||||||
room->map_meta = MetaMgr::Instance()->GetMap(2001);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
room->Init();
|
room->Init();
|
||||||
inactive_room_hash_[room->room_uuid] = room;
|
inactive_room_hash_[room->room_uuid] = room;
|
||||||
room_hash_[room->room_uuid] = room;
|
room_hash_[room->room_uuid] = room;
|
||||||
a8::UdpLog::Instance()->Info("createroom:%d masterid:%s max_mainloop_rundelay:%d "
|
|
||||||
"room_num:%d player_num:%d online_num:%d",
|
|
||||||
{
|
|
||||||
room->room_uuid,
|
|
||||||
msg.account_id(),
|
|
||||||
App::Instance()->perf.max_run_delay_time,
|
|
||||||
RoomMgr::Instance()->RoomNum(),
|
|
||||||
App::Instance()->perf.entity_num[ET_Player],
|
|
||||||
PlayerMgr::Instance()->OnlineNum(),
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
Player* hum = PlayerMgr::Instance()->CreatePlayerByCMJoin(hdr.ip_saddr, hdr.socket_handle, msg);
|
Player* hum = PlayerMgr::Instance()->CreatePlayerByCMJoin(hdr.ip_saddr, hdr.socket_handle, msg);
|
||||||
hum->meta = hum_meta;
|
hum->meta = hum_meta;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user