Various Bugfixes (#6720)

Fixes #6520
Fixes #6114
Fixes #5349
This commit is contained in:
Werner
2019-07-14 22:55:42 +03:00
committed by Erki
parent 2cf5780c8b
commit 7169e5ac67
8 changed files with 69 additions and 12 deletions
+2
View File
@@ -72,4 +72,6 @@
var/obj/screen/plane_master/parallax_dustmaster/parallax_dustmaster = null
var/obj/screen/plane_master/parallax_spacemaster/parallax_spacemaster = null
var/initialized = FALSE
var/authed = TRUE
+9 -7
View File
@@ -337,7 +337,6 @@
clients += src
directory[ckey] = src
if (LAZYLEN(config.client_blacklist_version))
var/client_version = "[byond_version].[byond_build]"
if (client_version in config.client_blacklist_version)
@@ -357,11 +356,10 @@
//Do auth shit
else
. = ..()
src.InitPerfs()
src.InitClient()
src.InitPrefs()
/client/proc/InitPerfs()
/client/proc/InitPrefs()
//preferences datum - also holds some persistant data for the client (because we may as well keep these datums to a minimum)
prefs = preferences_datums[ckey]
if(!prefs)
@@ -374,6 +372,8 @@
prefs.last_id = computer_id //these are gonna be used for banning
/client/proc/InitClient()
if(initialized)
return
to_chat(src, "<span class='alert'>If the title screen is black, resources are still downloading. Please be patient until the title screen appears.</span>")
//Admin Authorisation
@@ -436,9 +436,11 @@
check_ip_intel()
//////////////
//DISCONNECT//
//////////////
initialized = TRUE
//////////////
//DISCONNECT//
//////////////
/client/Del()
ticket_panels -= src
if(holder)