Fixed wrong operators in class declaration

This commit is contained in:
Vortrex
2020-12-26 02:03:25 -06:00
parent 188dda4146
commit bc634583ce

View File

@@ -26,11 +26,11 @@ function initClassTable() {
this.password = ""; this.password = "";
this.newCharacter = { this.newCharacter = {
spawnPosition = false, spawnPosition: false,
spawnHeading = 0.0, spawnHeading: 0.0,
money = 0, money: 0,
bank = 0, bank: 0,
skin = 0, skin: 0,
}; };
this.connectCameraPosition = false; this.connectCameraPosition = false;
@@ -58,11 +58,11 @@ function initClassTable() {
this.name = dbAssoc["svr_name"]; this.name = dbAssoc["svr_name"];
this.password = dbAssoc["svr_password"]; this.password = dbAssoc["svr_password"];
this.newCharacter = { this.newCharacter = {
spawnPosition = toVector3(dbAssoc["svr_newchar_pos_x"], dbAssoc["svr_newchar_pos_y"], dbAssoc["svr_newchar_pos_z"]), spawnPosition: toVector3(dbAssoc["svr_newchar_pos_x"], dbAssoc["svr_newchar_pos_y"], dbAssoc["svr_newchar_pos_z"]),
spawnHeading = dbAssoc["svr_newchar_rot_z"], spawnHeading: dbAssoc["svr_newchar_rot_z"],
money = dbAssoc["svr_newchar_money"], money: dbAssoc["svr_newchar_money"],
bank = dbAssoc["svr_newchar_bank"], bank: dbAssoc["svr_newchar_bank"],
skin = dbAssoc["svr_newchar_skin"], skin: dbAssoc["svr_newchar_skin"],
}, },
this.connectCameraPosition = toVector3(dbAssoc["svr_connectcam_pos_x"], dbAssoc["svr_connectcam_pos_y"], dbAssoc["svr_connectcam_pos_z"]); this.connectCameraPosition = toVector3(dbAssoc["svr_connectcam_pos_x"], dbAssoc["svr_connectcam_pos_y"], dbAssoc["svr_connectcam_pos_z"]);
@@ -96,10 +96,12 @@ function initClassTable() {
this.loggedIn = false; this.loggedIn = false;
this.busRoute = null; this.busRoute = null;
this.lastBusStop = null; this.busRouteStop = null;
this.busRouteIsland = null;
this.garbageRoute = null; this.garbageRoute = null;
this.lastGarbageStop = null; this.garbageRouteStop = null;
this.garbageRouteIsland = null;
this.spawned = false; this.spawned = false;
} }
@@ -355,7 +357,7 @@ function initClassTable() {
constructor(vehicleAssoc = false, vehicle = false) { constructor(vehicleAssoc = false, vehicle = false) {
// General Info // General Info
this.databaseId = 0; this.databaseId = 0;
this.server = serverId; this.server = getServerId();
this.model = (vehicle != false) ? vehicle.modelIndex : 0; this.model = (vehicle != false) ? vehicle.modelIndex : 0;
this.vehicle = vehicle; this.vehicle = vehicle;
@@ -621,3 +623,4 @@ function getClass(className) {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------