Fix config FPS/ Ticklag auto handling (#89792)

FPS / Ticklag should be independent configs, but due to the use of
`trim()` at
49f8d1e81d/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:
Kashargul
2025-03-04 07:53:22 +01:00
committed by Roxy
parent 92b66acbe8
commit 09f01e3bb3

View File

@@ -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