gm优化
This commit is contained in:
parent
292bb2de65
commit
d704fa62cf
@ -32,9 +32,9 @@ import (
|
||||
)
|
||||
|
||||
func ReqGmCommand(player *Player, buf []byte) error {
|
||||
if conf.Server.GameName != "pet_home" && conf.Server.GameName != "merge_pet_sdk" {
|
||||
return fmt.Errorf("Player %d ReqGmCommand not support in game %s", player.M_DwUin, conf.Server.GameName)
|
||||
}
|
||||
// if conf.Server.GameName != "pet_home" && conf.Server.GameName != "merge_pet_sdk" {
|
||||
// return fmt.Errorf("Player %d ReqGmCommand not support in game %s", player.M_DwUin, conf.Server.GameName)
|
||||
// }
|
||||
detail := &msg.ReqGmCommand{}
|
||||
proto.Unmarshal(buf, detail)
|
||||
return ReqGmCommand_(player, detail.Command)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user