Merge pull request #1634 from DragonTrance/fps-hotfix

Fixes Client FPS not changing to the user's preference
This commit is contained in:
QuoteFox
2022-06-08 04:25:48 +01:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
-1
View File
@@ -277,7 +277,6 @@ GLOBAL_LIST_EMPTY(preferences_datums)
/datum/preferences/New(client/C)
parent = C
clientfps = world.fps*2
for(var/custom_name_id in GLOB.preferences_custom_names)
custom_names[custom_name_id] = get_default_name(custom_name_id)
+3 -1
View File
@@ -57,7 +57,9 @@
var/datum/callback/CB = foo
CB.Invoke()
mind?.hide_ckey = client?.prefs?.hide_ckey
if(client.prefs)
mind?.hide_ckey = client.prefs.hide_ckey
client.fps = client.prefs.clientfps
log_message("Client [key_name(src)] has taken ownership of mob [src]([src.type])", LOG_OWNERSHIP)
SEND_SIGNAL(src, COMSIG_MOB_CLIENT_LOGIN, client)
client.init_verbs()