From 114936682ce1770f2d83364c24e15dc6217e105c Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Fri, 10 Nov 2017 00:24:40 -0500 Subject: [PATCH 1/2] Merge pull request #32545 from Buggy123/patch-33 clamps view range and add view range to a minimum of 7 --- code/modules/mob/dead/observer/observer.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 1ab823fd13..aae706310f 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -458,11 +458,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp var/max_view = client.prefs.unlock_content ? GHOST_MAX_VIEW_RANGE_MEMBER : GHOST_MAX_VIEW_RANGE_DEFAULT if(client.view == world.view) var/list/views = list() - for(var/i in 1 to max_view) + for(var/i in 7 to max_view) views |= i var/new_view = input("Choose your new view", "Modify view range", 7) as null|anything in views if(new_view) - client.change_view(Clamp(new_view, 1, max_view)) + client.change_view(Clamp(new_view, 7, max_view)) else client.change_view(world.view) @@ -471,7 +471,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp set hidden = TRUE var/max_view = client.prefs.unlock_content ? GHOST_MAX_VIEW_RANGE_MEMBER : GHOST_MAX_VIEW_RANGE_DEFAULT if(input) - client.change_view(Clamp(client.view + input, 1, max_view)) + client.change_view(Clamp(client.view + input, 7, max_view)) /mob/dead/observer/verb/boo() set category = "Ghost"