From b0d9658e2f964de7568c22a193beeca57227f861 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 30 Mar 2021 21:47:30 -0500 Subject: [PATCH] Remove old class members --- scripts/server/class.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/server/class.js b/scripts/server/class.js index 98c48b10..93dc3df4 100644 --- a/scripts/server/class.js +++ b/scripts/server/class.js @@ -143,7 +143,6 @@ function initClassTable() { this.switchingCharacter = false; - this.tutorialState = AG_TUTORIAL_STATE_NONE; this.tutorialStep = -1; this.tutorialItem = null; this.tutorialVehicle = null; @@ -207,6 +206,8 @@ function initClassTable() { this.emailVerificationCode = ""; this.twoFactorAuthVerificationCode = ""; + this.chatScrollLines = 1; + if(dbAssoc) { this.databaseId = dbAssoc["acct_id"]; this.name = dbAssoc["acct_name"]; @@ -232,6 +233,7 @@ function initClassTable() { this.emailVerificationCode = dbAssoc["acct_code_verifyemail"]; this.twoFactorAuthVerificationCode = dbAssoc["acct_code_2fa"]; + this.chatScrollLines = dbAssoc["acct_chat_scroll_lines"]; } } }, @@ -788,8 +790,8 @@ function initClassTable() { this.crimeType = crimeType; this.suspectId = suspectId; this.reporterId = reporterId; - this.whenCommitted = new Date().getTime(); - this.whenReported = new Date().getTime(); + this.whenCommitted = 0; + this.whenReported = 0; this.databaseId = 0; } },