round 문제 수정

This commit is contained in:
2019-10-09 12:36:06 +09:00
parent d750167a00
commit a3fef6c62f
5 changed files with 19 additions and 16 deletions
+1 -1
View File
@@ -740,7 +740,7 @@ class GeneralAI{
if($targetGeneral){
if($targetGeneral === $compNpcCivil){
$amount = round($targetGeneral->$resName - $minRes * 3, -2);
$amount = Util::round($targetGeneral->$resName - $minRes * 3, -2);
}
else{
$amount = min(10000, intdiv($targetGeneral->$resName, 5000)*1000 + 1000);