mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-30 07:29:25 +01:00
fixes beartraps not allowing unbuckle & nanoui runtime spam (#4934)
Co-authored-by: silicons <no@you.cat>
This commit is contained in:
@@ -12,7 +12,10 @@
|
||||
/mob/observer/dead/nano_default_can_use_topic(var/src_object)
|
||||
if(can_admin_interact())
|
||||
return UI_INTERACTIVE // Admins are more equal
|
||||
if(!client || get_dist(src_object, src) > client.view) // Preventing ghosts from having a million windows open by limiting to objects in range
|
||||
if(!client)
|
||||
return UI_CLOSE
|
||||
// todo: in view range for zooming
|
||||
if(get_dist(src, src_object) > min(CEILING(client.current_viewport_width / 2, 1), CEILING(client.current_viewport_height / 2, 1)))
|
||||
return UI_CLOSE
|
||||
return UI_UPDATE // Ghosts can view updates
|
||||
|
||||
|
||||
Reference in New Issue
Block a user