From 350b24d511b2d4e690d30b3bda2e2903ba21fae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=A2=E1=84=91=E1=85=B3=E1=86=AF=20=E1=84=82?= =?UTF-8?q?=E1=85=A9=E1=84=90=E1=85=B3=E1=84=87=E1=85=AE=E1=86=A8?= Date: Thu, 6 Dec 2018 00:28:46 +0900 Subject: [PATCH] Fix: apply score+unit to ranking screen --- src/game/ranking/ranking.js | 5 ++++- src/web/client/ranking.html | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/ranking/ranking.js b/src/game/ranking/ranking.js index 6af0bd5..24cbd86 100644 --- a/src/game/ranking/ranking.js +++ b/src/game/ranking/ranking.js @@ -254,7 +254,10 @@ var Ranking = { // bestRecordRow[0] = jsonRankingList[i]['UserID']; bestRecordRow[0] = i + 1; bestRecordRow[1] = jsonRankingList[i]['Name']; - bestRecordRow[2] = Math.floor(jsonRankingList[i]['BestRecord']); + bestRecordRow[2] = RecordUtil.getRecordValueWithUnit( + jsonRankingList[i]['BestRecord'], + sessionStorageManager.getPlayingAppID() + ); // console.log("$BestRecordRow : " + bestRecordRow[0] + ", " + bestRecordRow[1] + ", " + bestRecordRow[2]); recordArray.push(bestRecordRow); diff --git a/src/web/client/ranking.html b/src/web/client/ranking.html index f3b1b0d..a7755cf 100644 --- a/src/web/client/ranking.html +++ b/src/web/client/ranking.html @@ -41,6 +41,7 @@ +