From 1925dceab9cc80070e407af3276d9373ca433c0d Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 27 Sep 2022 22:42:23 +0200 Subject: [PATCH] [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> --- code/_onclick/hud/parallax.dm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/code/_onclick/hud/parallax.dm b/code/_onclick/hud/parallax.dm index a61513181fa..0d602717479 100755 --- a/code/_onclick/hud/parallax.dm +++ b/code/_onclick/hud/parallax.dm @@ -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)