From b91f674bc272e36307300e8e52156a6c9382f3eb Mon Sep 17 00:00:00 2001 From: ehxhfl7 <57280515+zzunnyworld@users.noreply.github.com> Date: Sun, 2 Jan 2022 02:32:33 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 게임이 진행 중인 방의 비밀번호를 틀렸을 때 BGM이 끊기는 문제를 해결했습니다. --- Server/lib/Web/lib/kkutu/body.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Server/lib/Web/lib/kkutu/body.js b/Server/lib/Web/lib/kkutu/body.js index 6728cfe8c..bd841ef8f 100644 --- a/Server/lib/Web/lib/kkutu/body.js +++ b/Server/lib/Web/lib/kkutu/body.js @@ -262,7 +262,10 @@ function onMessage(data){ $data.setUser(data.user.id, data.user); $target = $data.usersR[data.user.id] = data.user; - if($target.id == $data.id) loading(); + if($target.id == $data.id){ + loading(); + stopBGM(); + } else notice(($target.profile.title || $target.profile.name) + L['hasJoined']); updateUserList(); break; @@ -470,7 +473,6 @@ function onMessage(data){ }else if(data.code == 416){ // 게임 중 if(confirm(L['error_'+data.code])){ - stopBGM(); $data._spectate = true; $data._gaming = true; send('enter', { id: data.target, password: $data._pw, spectate: true }, true); From e78a91e5cd655d746524e78285f29b4c8842c76e Mon Sep 17 00:00:00 2001 From: ehxhfl7 <57280515+zzunnyworld@users.noreply.github.com> Date: Sun, 2 Jan 2022 02:56:18 +0900 Subject: [PATCH 2/2] =?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 --- Server/lib/Web/lib/kkutu/body.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Server/lib/Web/lib/kkutu/body.js b/Server/lib/Web/lib/kkutu/body.js index bd841ef8f..5afa4369f 100644 --- a/Server/lib/Web/lib/kkutu/body.js +++ b/Server/lib/Web/lib/kkutu/body.js @@ -262,10 +262,7 @@ function onMessage(data){ $data.setUser(data.user.id, data.user); $target = $data.usersR[data.user.id] = data.user; - if($target.id == $data.id){ - loading(); - stopBGM(); - } + if($target.id == $data.id) loading(); else notice(($target.profile.title || $target.profile.name) + L['hasJoined']); updateUserList(); break; @@ -463,6 +460,7 @@ function onMessage(data){ location.href = "/login?desc=login_kkutu"; */ }else if(data.code == 403){ loading(); + playBGM('lobby'); }else if(data.code == 406){ if($stage.dialog.quick.is(':visible')){ $data._preQuick = false; @@ -473,6 +471,7 @@ function onMessage(data){ }else if(data.code == 416){ // 게임 중 if(confirm(L['error_'+data.code])){ + stopBGM(); $data._spectate = true; $data._gaming = true; send('enter', { id: data.target, password: $data._pw, spectate: true }, true);