1
This commit is contained in:
parent
2eccca1186
commit
7eef3d74e0
@ -139,10 +139,9 @@ func (this *roomMgr) CMGetCurrentRoom(hdr *f5.MsgHdr, msg *cs.CMGetCurrentRoom)
|
||||
hum := hdr.Context.(common.Player)
|
||||
rspMsg := &cs.SMGetCurrentRoom{}
|
||||
if hum.GetRoom() != nil && hum.GetRoom().GetRoomState() == ROOM_INIT_STATE {
|
||||
hum.GetRoom().(*room).fillMFCurrentRoom(rspMsg.Room)
|
||||
hum.SendMsg(rspMsg)
|
||||
return
|
||||
}
|
||||
rspMsg.Room = new(cs.MFCurrentRoom)
|
||||
hum.GetRoom().(*room).fillMFCurrentRoom(rspMsg.Room)
|
||||
hum.SendMsg(rspMsg)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user