playroom bug
This commit is contained in:
parent
eb312084f1
commit
cd5203b8f6
@ -11,6 +11,7 @@ import (
|
||||
playroomCfg "server/conf/playroom"
|
||||
"server/db"
|
||||
"server/game/mod/card"
|
||||
"server/game/mod/friend"
|
||||
"server/game/mod/item"
|
||||
MsgMod "server/game/mod/msg"
|
||||
"server/game/mod/playroom"
|
||||
@ -256,6 +257,9 @@ func ReqGmCommand_(player *Player, Command string) error {
|
||||
case "resetTriggerTime":
|
||||
PlayroomMod := player.PlayMod.getPlayroomMod()
|
||||
PlayroomMod.TriggerTime = 0
|
||||
case "resetTimeline":
|
||||
FriendMod := player.PlayMod.getFriendMod()
|
||||
FriendMod.Log = make([]*friend.LogInfo, 0)
|
||||
case "recoverUser":
|
||||
file, err := os.OpenFile(conf.Server.GameConfPath+"user.info", os.O_RDWR|os.O_CREATE, 0666)
|
||||
if err != nil {
|
||||
|
||||
@ -302,13 +302,16 @@ func SyncFriendMsg(p *Player) {
|
||||
})
|
||||
maxId := int64(0)
|
||||
for _, v := range ml {
|
||||
if v.Id <= MsgId {
|
||||
maxId = max(maxId, v.Id)
|
||||
if v.H == 1 {
|
||||
continue
|
||||
}
|
||||
if v.Id > 0 && v.Id <= MsgId {
|
||||
continue
|
||||
}
|
||||
maxId = max(maxId, v.Id)
|
||||
handle(p, v)
|
||||
}
|
||||
FriendMod.SetSyncId(int64(maxId))
|
||||
FriendMod.SetSyncId(maxId)
|
||||
p.PlayMod.save()
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user