From a18c2a9ad97e72f9f6d9c210c29fc11ed55fe92c Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 03 十一月 2020 12:30:51 +0800
Subject: [PATCH] 0312 优化封包
---
Core/GameEngine/Model/TelPartialConfig/PlayerPropertyConfig.cs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Core/GameEngine/Model/TelPartialConfig/PlayerPropertyConfig.cs b/Core/GameEngine/Model/TelPartialConfig/PlayerPropertyConfig.cs
index fb0ebab..92cc43a 100644
--- a/Core/GameEngine/Model/TelPartialConfig/PlayerPropertyConfig.cs
+++ b/Core/GameEngine/Model/TelPartialConfig/PlayerPropertyConfig.cs
@@ -78,18 +78,18 @@
return string.Empty;
}
- var result = 0f;
+ double result = 0f;
if (config.ISPercentage == 0)
{
result = value;
}
else if (config.ISPercentage == 1)
{
- result = (float)Math.Round(value / 100f, config.decimalCount);
+ result = (double)Math.Round(value / 100f, config.decimalCount);
}
else if (config.ISPercentage == 2)
{
- result = (float)Math.Round(value / 100f, config.decimalCount);
+ result = (double)Math.Round(value / 100f, config.decimalCount);
}
var label = string.Empty;
--
Gitblit v1.8.0