mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 18:22:14 +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
|
return
|
||||||
//we couldn't load character data so just randomize the character appearance + name
|
//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.
|
randomise_appearance_prefs() //let's create a random character then - rather than a fat, bald and naked man.
|
||||||
|
if(C)
|
||||||
C?.set_macros()
|
apply_all_client_preferences()
|
||||||
|
C.set_macros()
|
||||||
|
|
||||||
if(!loaded_preferences_successfully)
|
if(!loaded_preferences_successfully)
|
||||||
save_preferences()
|
save_preferences()
|
||||||
|
|||||||
@@ -6,6 +6,9 @@
|
|||||||
minimum = -1
|
minimum = -1
|
||||||
maximum = 240
|
maximum = 240
|
||||||
|
|
||||||
|
/datum/preference/numeric/fps/create_default_value()
|
||||||
|
return -1
|
||||||
|
|
||||||
/datum/preference/numeric/fps/apply_to_client(client/client, value)
|
/datum/preference/numeric/fps/apply_to_client(client/client, value)
|
||||||
client.fps = (value < 0) ? RECOMMENDED_FPS : value
|
client.fps = (value < 0) ? RECOMMENDED_FPS : value
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user