버그 패치

- 메인 페이지에서 턴 실행으로 세션락이 걸리지 않도록.
- 토너먼트에서 매 라운드마다 텍스트가 초기화 되지 않던 문제 해결
- 전투 로그 표기에서  불필요한 빈칸 제거
This commit is contained in:
2018-04-11 01:08:12 +09:00
parent 5c8194b36d
commit 3004b20c87
4 changed files with 21 additions and 19 deletions
+3 -6
View File
@@ -232,12 +232,7 @@ function startTournament($auto, $type) {
$db = DB::db();
$connect=$db->get();
for($i=0; $i<50; $i++){
$filepath = "logs/fight{$i}.txt";
if(file_exists($filepath)){
@unlink($filepath);
}
}
eraseTnmtFightLogAll();
switch($auto) {
case 1: $unit = 60; break;
@@ -760,6 +755,8 @@ function fight($tnmt_type, $tnmt, $phs, $group, $g1, $g2, $type) {
$db = DB::db();
$connect=$db->get();
eraseTnmtFightLog($group);
$query = "select *,(ldr+pwr+itl)*7/15 as tot,h,w,b from tournament where grp='$group' and grp_no='$g1'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gen1 = MYDB_fetch_array($result);