From 00f08a07816b46748a1737d238950ca1a5dfb1f2 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期一, 05 十一月 2018 19:50:15 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/SystemSetting/SystemSetting.cs | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/System/SystemSetting/SystemSetting.cs b/System/SystemSetting/SystemSetting.cs
index d93b252..eaea4f2 100644
--- a/System/SystemSetting/SystemSetting.cs
+++ b/System/SystemSetting/SystemSetting.cs
@@ -93,8 +93,7 @@
public void SetPlayerSyncCount(int _syncCount)
{
- SettingMgr.Instance.SetAccountSetStr("PlayerSyncCount", _syncCount.ToString());
-
+ LocalSave.SetInt("PlayerSyncCount", _syncCount);
if (m_PlayerSyncCount != _syncCount)
{
m_PlayerSyncCount = _syncCount;
@@ -109,7 +108,7 @@
{
if (m_PlayerSyncCount == -1)
{
- var result = SettingMgr.Instance.GetAccountSetIntInfo("PlayerSyncCount");
+ var result = LocalSave.GetInt("PlayerSyncCount", -1);
if (result == -1)
{
var quality = GetCurrentQualityLevel();
@@ -119,10 +118,10 @@
m_PlayerSyncCount = 15;
break;
case GameQuality.Low:
- m_PlayerSyncCount = 10;
+ m_PlayerSyncCount = 5;
break;
case GameQuality.Medium:
- m_PlayerSyncCount = 5;
+ m_PlayerSyncCount = 10;
break;
}
}
--
Gitblit v1.8.0