mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
Refactors player preferences for modularity + SQLite Unit Test (#37615)
* Pref code refactor * Empty database reference * Unit testing SQLite * Everything else * Disable unit testing. * Equivalent * more robust unit tests
This commit is contained in:
committed by
GitHub
parent
3290a3a747
commit
189f77cbb7
@@ -88,7 +88,7 @@
|
||||
if (some_hearer.ear_deaf > 0)
|
||||
continue
|
||||
// var/dist = get_dist(some_hearer, src)
|
||||
if (!some_hearer.client.prefs.hear_instruments)
|
||||
if (!some_hearer.client.prefs.get_pref(/datum/preference_setting/toggle/hear_instruments))
|
||||
continue
|
||||
present_listeners += some_hearer
|
||||
last_updated_listeners = world.time
|
||||
@@ -103,4 +103,4 @@
|
||||
// Cease playing
|
||||
return 0
|
||||
|
||||
#undef REFRESH_FREQUENCY
|
||||
#undef REFRESH_FREQUENCY
|
||||
|
||||
Reference in New Issue
Block a user