Fixed wrong holo color display

fixes #10
This commit is contained in:
Kevin Ramharak 2018-01-01 16:21:48 +01:00 committed by GitHub
parent 71687cdc9f
commit 471e29e9ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,7 +327,8 @@ function updateGameObject(object, responseObj) {
var color = false;
if (responseObj.holoC) {
color = "#" + Number(responseObj.holoC & 0xFFFFFF).toString(16)
color = (responseObj.holoC & 0xFFFFFF).toString(16)
color = "#" + ("000000".substr(color.length) + color);
}
if (responseObj.holoMode === 1) {