mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
[READY] Widescreen (#20861)
* TM Needed - Widescreen * A lot of fixes * TM notice * Feedback thread * Minor tweaks * Expans silicon view stuff * Fix viewmods * The preferential option * Why were these global * Fix clickcatch sizing, fix parallax issues * Maybe fixes the runtime * READY
This commit is contained in:
@@ -272,7 +272,7 @@
|
||||
// As a synthetic, the only limit on visibility is view range
|
||||
/obj/item/mmi/contents_ui_distance(src_object, mob/living/user)
|
||||
. = ..()
|
||||
if((src_object in view(src)) && get_dist(src_object, src) <= user.client.view)
|
||||
if((src_object in view(src)) && get_dist(src_object, src) <= user.client.maxview())
|
||||
return STATUS_INTERACTIVE // interactive (green visibility)
|
||||
return user.shared_living_ui_distance()
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
if(!isnum(forced_look))
|
||||
var/atom/A = locateUID(forced_look)
|
||||
if(istype(A))
|
||||
var/view = client ? client.view : world.view
|
||||
var/view = client ? client.maxview() : world.view
|
||||
if(get_dist(src, A) > view || !(src in viewers(view, A)))
|
||||
forced_look = null
|
||||
to_chat(src, "<span class='notice'>Your direction target has left your view, you are no longer facing anything.</span>")
|
||||
|
||||
Reference in New Issue
Block a user