From d398f903f87053431bec3b164889d246be0dc7a4 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 28 Apr 2019 00:18:36 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=BC=EB=B6=80=20=EC=88=98=EC=A0=95.=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_process.php | 4 ++-- hwe/func_tournament.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hwe/func_process.php b/hwe/func_process.php index 4a955f1a..20c62bf0 100644 --- a/hwe/func_process.php +++ b/hwe/func_process.php @@ -156,8 +156,8 @@ function CriticalRatioDomestic($general, $type) { $fail = pow($ratio / 1.2, 1.4) - 0.3; $success = pow($ratio / 1.2, 1.5) - 0.25; - $fail = min(max($fail, 0), 0.5); - $success = min(max($success, 0), 0.5); + $fail = Util::valueFit($fail, 0, 0.5); + $success = Util::valueFit($success, 0, 0.5); return array( diff --git a/hwe/func_tournament.php b/hwe/func_tournament.php index 214b2266..f926d342 100644 --- a/hwe/func_tournament.php +++ b/hwe/func_tournament.php @@ -329,7 +329,7 @@ function fillLowGenAll() { $gameStor->tournament = 2; $gameStor->phase = 0; - $currentJoinerCnt = sum($grpCount); + $currentJoinerCnt = array_sum($grpCount); if($currentJoinerCnt == 64){ return; }