From 99f6b55284c6a7f6dd08426af187538550c9f93a Mon Sep 17 00:00:00 2001 From: ET54321 Date: Fri, 29 Dec 2017 23:13:07 -0600 Subject: [PATCH] Adjustment for when RR avatars are added --- app/assets/javascript/frontend.js | 4 ++-- views/settings.ejs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascript/frontend.js b/app/assets/javascript/frontend.js index e24cf3bb..de8d1873 100644 --- a/app/assets/javascript/frontend.js +++ b/app/assets/javascript/frontend.js @@ -448,7 +448,7 @@ function WebclientUI() { content.find("#useravatar").val(poStorage.get("player.avatar") || 0); var setAvatar = function() { var num = parseInt(content.find("#useravatar").val()); - if (isNaN(num) || num < 0 || num > 844) { + if (isNaN(num) || num < 0 || num > 852) { // nothing or invalid avatar given, do not change return; } @@ -478,7 +478,7 @@ function WebclientUI() { poStorage.set("user", userName); poStorage.set("player.color", userColor); poStorage.set("player.info", userInfo); - poStorage.set("player.avatar", Math.floor(Math.min(844, Math.max(userAvatar, 0)))); + poStorage.set("player.avatar", Math.floor(Math.min(852, Math.max(userAvatar, 0)))); var update = {}; diff --git a/views/settings.ejs b/views/settings.ejs index 4b3dc418..6cc3ed07 100644 --- a/views/settings.ejs +++ b/views/settings.ejs @@ -3,7 +3,7 @@
- +