Skip to content

Commit 2be7f95

Browse files
author
committed
fix otherscore
1 parent 48e7f3f commit 2be7f95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: assets/js/game.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ sock.on("getProblem", data => {
117117
});
118118
//別人回答
119119
sock.on("otheranswer", data => {
120-
if (data.res.correct) {
120+
if (data.correct) {
121121
changeColor("other", "right");
122122
}
123123
else {
124124
changeColor("other", "error");
125125
}
126-
otherScore += data.res.score;
126+
otherScore += data.score;
127127
$("#otherscore").text(otherScore);
128128
});
129129

0 commit comments

Comments
 (0)