1
This commit is contained in:
parent
b82a5e2d02
commit
1e555756fa
@ -309,9 +309,7 @@ void App::DispatchMsg()
|
||||
break;
|
||||
case SF_MasterServer:
|
||||
{
|
||||
#if MASTER_MODE
|
||||
ProcessMasterServerMsg(hdr);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -379,7 +377,17 @@ void App::ProcessClientMsg(f8::MsgHdr& hdr)
|
||||
|
||||
void App::ProcessMasterServerMsg(f8::MsgHdr& hdr)
|
||||
{
|
||||
|
||||
#if MASTER_MODE
|
||||
f8::NetMsgHandler* handler = f8::GetNetMsgHandler(&HandlerMgr::Instance()->msmsghandler,
|
||||
hdr.msgid);
|
||||
if (handler) {
|
||||
switch (handler->handlerid) {
|
||||
case HID_MasterSvrMgr:
|
||||
ProcessNetMsg(handler, MasterSvrMgr::Instance(), hdr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void App::ProcessTargetServerMsg(f8::MsgHdr& hdr)
|
||||
|
@ -42,9 +42,7 @@ private:
|
||||
void ProcessIMMsg();
|
||||
|
||||
void ProcessClientMsg(f8::MsgHdr& hdr);
|
||||
#if MASTER_MODE
|
||||
void ProcessMasterServerMsg(f8::MsgHdr& hdr);
|
||||
#endif
|
||||
void ProcessTargetServerMsg(f8::MsgHdr& hdr);
|
||||
|
||||
void InitLog();
|
||||
|
Loading…
x
Reference in New Issue
Block a user