This commit is contained in:
aozhiwei 2023-09-24 12:04:09 +08:00
parent 2eccca1186
commit 7eef3d74e0

View File

@ -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)
}