Merge branch 'master' of https://repositories.action2quare.com/dominick/GameServer
This commit is contained in:
@ -345,7 +345,6 @@ func (tx *transaction) UpdateCharInfo(charSlotId int32, raw map[string]interface
|
||||
options.FindOne().SetProjection(bson.M{"charInfo.$": 1}))
|
||||
|
||||
var info map[string]interface{}
|
||||
|
||||
if q == nil {
|
||||
info = raw
|
||||
info["slotId"] = charSlotId
|
||||
|
||||
@ -3,6 +3,7 @@ package core
|
||||
import (
|
||||
"anvil/shared"
|
||||
"bytes"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
@ -77,6 +78,9 @@ func (gs *AeGameServer) Version() string {
|
||||
|
||||
// New :
|
||||
func New() (*AeGameServer, error) {
|
||||
if !flag.Parsed() {
|
||||
flag.Parse()
|
||||
}
|
||||
|
||||
logfilename := fmt.Sprintf("AEGS_%s.log", time.Now().Format("2006-01-02T15-04-05"))
|
||||
logFile, err := os.OpenFile(logfilename, os.O_CREATE|os.O_WRONLY|os.O_CREATE, 0666)
|
||||
|
||||
Reference in New Issue
Block a user