mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-14 03:32:00 +00:00
Fix config FPS/ Ticklag auto handling (#89792)
FPS / Ticklag should be independent configs, but due to the use of `trim()` at49f8d1e81d/code/controllers/configuration/config_entry.dm (L116)the number we hand over will simply be turned into an empty string...49f8d1e81d/code/controllers/configuration/entries/general.dm (L223)49f8d1e81d/code/controllers/configuration/entries/general.dm (L241)No player facing changes ## About The Pull Request ## Why It's Good For The Game Timers can get fucked up when someone only sets one or the other currently... ## Changelog
This commit is contained in:
@@ -223,7 +223,7 @@
|
||||
sync_validate = TRUE
|
||||
var/datum/config_entry/number/ticklag/TL = config.entries_by_type[/datum/config_entry/number/ticklag]
|
||||
if(!TL.sync_validate)
|
||||
TL.ValidateAndSet(10 / config_entry_value)
|
||||
TL.ValidateAndSet("[10 / config_entry_value]")
|
||||
sync_validate = FALSE
|
||||
|
||||
/datum/config_entry/number/ticklag
|
||||
@@ -241,7 +241,7 @@
|
||||
sync_validate = TRUE
|
||||
var/datum/config_entry/number/fps/FPS = config.entries_by_type[/datum/config_entry/number/fps]
|
||||
if(!FPS.sync_validate)
|
||||
FPS.ValidateAndSet(10 / config_entry_value)
|
||||
FPS.ValidateAndSet("[10 / config_entry_value]")
|
||||
sync_validate = FALSE
|
||||
|
||||
/datum/config_entry/flag/allow_holidays
|
||||
|
||||
Reference in New Issue
Block a user