Send AOMsgs if LocalPlayerCAO already exists (#26)

master
HimbeerserverDE 2021-09-01 11:05:41 +02:00
parent 2368b5dfb1
commit fa34fb2504
No known key found for this signature in database
GPG Key ID: 1A651504791E6A8B
1 changed files with 10 additions and 0 deletions

View File

@ -284,6 +284,16 @@ func handleSrv(sc *serverConn) {
}
resp.Add = append(resp.Add, ao)
} else {
var msgs []mt.IDAOMsg
for _, msg := range ao.InitData.Msgs {
msgs = append(msgs, mt.IDAOMsg{
ID: ao.ID,
Msg: msg,
})
}
sc.client().SendCmd(&mt.ToCltAOMsgs{Msgs: msgs})
}
} else {
sc.swapAOID(&ao.ID)