Merge branch 'master' of https://github.com/tgstation/-tg-station into many_hands_make_light_work

This commit is contained in:
Remie Richards
2016-09-10 20:28:23 +01:00
216 changed files with 4331 additions and 1228 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
. = max(., UI_INTERACTIVE)
// Regular ghosts can always at least view if in range.
if(get_dist(src_object, src) < user.client.view)
if(get_dist(src_object, user) < user.client.view)
. = max(., UI_UPDATE)
// Check if the state allows interaction
+8 -1
View File
@@ -182,8 +182,15 @@
processing_uis.Remove(ui) // Remove it from the list of processing UIs.
if(ui.user) // If the user exists, remove it from them too.
ui.user.open_uis.Remove(ui)
var/list/uis = open_uis[src_object_key][ui.ui_key] // Remove it from the list of open UIs.
var/Ukey = ui.ui_key
var/list/uis = open_uis[src_object_key][Ukey] // Remove it from the list of open UIs.
uis.Remove(ui)
if(!uis.len)
var/list/uiobj = open_uis[src_object_key]
uiobj.Remove(Ukey)
if(!uiobj.len)
open_uis.Remove(src_object_key)
return 1 // Let the caller know we did it.
/**