mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
[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:
co-authored by
LemonInTheDark
parent
88fe8c787f
commit
1925dceab9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user