mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
Fixes default FPS and makes it apply to new players (#61957)
Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com> Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
@@ -114,8 +114,9 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
return
|
||||
//we couldn't load character data so just randomize the character appearance + name
|
||||
randomise_appearance_prefs() //let's create a random character then - rather than a fat, bald and naked man.
|
||||
|
||||
C?.set_macros()
|
||||
if(C)
|
||||
apply_all_client_preferences()
|
||||
C.set_macros()
|
||||
|
||||
if(!loaded_preferences_successfully)
|
||||
save_preferences()
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
minimum = -1
|
||||
maximum = 240
|
||||
|
||||
/datum/preference/numeric/fps/create_default_value()
|
||||
return -1
|
||||
|
||||
/datum/preference/numeric/fps/apply_to_client(client/client, value)
|
||||
client.fps = (value < 0) ? RECOMMENDED_FPS : value
|
||||
|
||||
|
||||
Reference in New Issue
Block a user