[MIRROR] Fixes a bug with null clients in parallax code [MDB IGNORE] (#16473)

* Fixes a bug with null clients in parallax code (#70141)

* Fixes a bug with null clients in parallax code

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-09-27 16:42:23 -04:00
committed by GitHub
co-authored by LemonInTheDark
parent 88fe8c787f
commit 1925dceab9
+1 -5
View File
@@ -54,11 +54,7 @@
var/client/C = screenmob.client
// Default to HIGH
var/parallax_selection = PARALLAX_HIGH
if(C.prefs)
parallax_selection = C.prefs.read_preference(/datum/preference/choiced/parallax)
if (!parallax_selection)
parallax_selection = PARALLAX_HIGH
var/parallax_selection = C?.prefs.read_preference(/datum/preference/choiced/parallax) || PARALLAX_HIGH
switch(parallax_selection)
if (PARALLAX_INSANE)