mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 16:02:26 +08:00
修复
This commit is contained in:
@@ -68,7 +68,7 @@ func (g *Game) SetPlayerBornDataReq(player *model.Player, payloadMsg pb.Message)
|
|||||||
|
|
||||||
func (g *Game) OnLogin(userId uint32, clientSeq uint32, gateAppId string, player *model.Player, joinHostUserId uint32) {
|
func (g *Game) OnLogin(userId uint32, clientSeq uint32, gateAppId string, player *model.Player, joinHostUserId uint32) {
|
||||||
if player == nil {
|
if player == nil {
|
||||||
player := g.CreatePlayer(userId)
|
player = g.CreatePlayer(userId)
|
||||||
USER_MANAGER.ChangeUserDbState(player, model.DbInsert)
|
USER_MANAGER.ChangeUserDbState(player, model.DbInsert)
|
||||||
}
|
}
|
||||||
USER_MANAGER.AddUser(player)
|
USER_MANAGER.AddUser(player)
|
||||||
|
|||||||
Reference in New Issue
Block a user