From 6ad0c4d1203e27bded42c566fbacfab2be85fec3 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 13 Jul 2021 00:51:40 -0500 Subject: [PATCH] Add minute duration to server cfg class --- scripts/server/class.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/server/class.js b/scripts/server/class.js index 55d9e248..f8ce40ea 100644 --- a/scripts/server/class.js +++ b/scripts/server/class.js @@ -49,6 +49,7 @@ function initClassTable() { this.hour = 0; this.minute = 0 + this.minuteDuration = 1000; this.weather = 0 this.fallingSnow = false; this.groundSnow = false; @@ -743,6 +744,7 @@ function initClassTable() { this.colour2 = (vehicle) ? vehicle.colour2 : 1; this.colour3 = (vehicle) ? vehicle.colour3 : 1; this.colour4 = (vehicle) ? vehicle.colour4 : 1; + this.livery = 3; this.extras = [ 0, @@ -802,6 +804,7 @@ function initClassTable() { this.colour2 = toInteger(dbAssoc["veh_col2"]); this.colour3 = toInteger(dbAssoc["veh_col3"]); this.colour4 = toInteger(dbAssoc["veh_col4"]); + this.livery = toInteger(dbAssoc["veh_livery"]); // Extras (components on SA, extras on IV+) this.extras = [