From 964ed3e7c7b8aafc7c81bb2a2e0b01df34d6a2f7 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 17 Feb 2018 16:46:11 +0900 Subject: [PATCH] =?UTF-8?q?=ED=92=8D=EC=9E=91/=EC=9E=AC=EB=82=9C=EC=9D=98?= =?UTF-8?q?=20=EB=8F=84=EC=8B=9C=EC=9D=98=20=EC=A6=9D=EA=B0=90=EB=A5=A0?= =?UTF-8?q?=EC=9D=B4=20=ED=95=B4=EB=8B=B9=20=EB=8F=84=EC=8B=9C=EC=9D=98=20?= =?UTF-8?q?=EC=B9=98=EC=95=88=EC=97=90=20=EB=94=B0=EB=A5=B4=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- che_close/func.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/che_close/func.php b/che_close/func.php index 985291f..62daa1c 100644 --- a/che_close/func.php +++ b/che_close/func.php @@ -6726,8 +6726,9 @@ function disaster($connect) { else { $ratio = 6 - round(1.0*$city[secu]/$city[secu2]*3); } // 3 ~ 6% if(rand()%100+1 < $ratio) { - $disastercity[count($disastercity)] = $city[city]; - $disasterratio[count($disastercity)] = 1.0 * $city[secu] / $city[secu2]; + $idx = count($disastercity); + $disastercity[$idx] = $city[city]; + $disasterratio[$idx] = 1.0 * $city[secu] / $city[secu2]; $disastername .= $city[name]." "; } }