This commit is contained in:
aozhiwei 2023-09-26 11:22:32 +08:00
parent a534f9123b
commit 12c11fa0e5

View File

@ -139,6 +139,7 @@ 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 {
rspMsg.Room = new(cs.MFCurrentRoom)
hum.GetRoom().(*room).fillMFCurrentRoom(rspMsg.Room)
hum.SendMsg(rspMsg)
return