Compare commits

...

3 Commits

2 changed files with 9 additions and 4 deletions

View File

@ -1790,7 +1790,7 @@ func (this *SceneBilledStateTienLen) OnEnter(s *base.Scene) {
} }
} }
losePlayerCoin := losePlayer.GetCoin() losePlayerCoin := losePlayer.GetCoin()
if !sceneEx.IsMatchScene() && losePlayerCoin < gainScore { if !sceneEx.IsMatchScene() && !sceneEx.IsCustom() && losePlayerCoin < gainScore {
gainScore = losePlayerCoin gainScore = losePlayerCoin
} }
losePlayerScore = gainScore losePlayerScore = gainScore
@ -1932,7 +1932,7 @@ func (this *SceneBilledStateTienLen) OnEnter(s *base.Scene) {
} }
} }
lastWinPlayerCoin := lastWinPlayer.GetCoin() lastWinPlayerCoin := lastWinPlayer.GetCoin()
if !sceneEx.IsMatchScene() && lastWinPlayerCoin < astWinGainScore { if !sceneEx.IsMatchScene() && !sceneEx.IsCustom() && lastWinPlayerCoin < astWinGainScore {
astWinGainScore = lastWinPlayerCoin astWinGainScore = lastWinPlayerCoin
} }
lastWinPlayerScore = astWinGainScore lastWinPlayerScore = astWinGainScore
@ -2292,7 +2292,7 @@ func (this *SceneBilledStateTienLen) OnEnter(s *base.Scene) {
} }
} }
losePlayerCoin := playerEx.GetCoin() losePlayerCoin := playerEx.GetCoin()
if !sceneEx.IsMatchScene() && losePlayerCoin < gainScore { if !sceneEx.IsMatchScene() && !sceneEx.IsCustom() && losePlayerCoin < gainScore {
gainScore = losePlayerCoin gainScore = losePlayerCoin
} }
winScore += gainScore winScore += gainScore

View File

@ -1799,7 +1799,12 @@ func (this *Player) CanDelete() bool {
} }
func (this *Player) Time2Save() { func (this *Player) Time2Save() {
logger.Logger.Tracef("player save %v", this.SnId)
if common.Config.IsDevMode {
this.Save(true)
} else {
this.Save(false) this.Save(false)
}
if this != nil && this.CanDelete() { if this != nil && this.CanDelete() {
PlayerMgrSington.DelPlayer(this.SnId) PlayerMgrSington.DelPlayer(this.SnId)
} }