Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
cc16e92dbd
@ -223,7 +223,11 @@ func (this *ModelUser) computeLevel(change *pb.UserResChangedPush) (lvchange boo
|
||||
res int64
|
||||
)
|
||||
rewards = make([]*cfg.Gameatn, 0)
|
||||
for nextLvConf = this.module.configure.GetPlayerlvConf(curLv + 1); nextLvConf != nil; {
|
||||
for {
|
||||
nextLvConf = this.module.configure.GetPlayerlvConf(curLv + 1)
|
||||
if nextLvConf == nil {
|
||||
break
|
||||
}
|
||||
if curExp >= int64(nextLvConf.Exp) {
|
||||
curExp = curExp - int64(nextLvConf.Exp)
|
||||
curLv++
|
||||
|
Loading…
Reference in New Issue
Block a user