This commit is contained in:
ShizCalev
2018-01-19 14:25:44 -05:00
parent eb48a2df2f
commit ea1d6b46c1
2 changed files with 9 additions and 5 deletions

View File

@@ -73,8 +73,9 @@
static_inventory += using static_inventory += using
/datum/hud/ghost/show_hud(version = 0, mob/viewmob) /datum/hud/ghost/show_hud(version = 0, mob/viewmob)
if(!..()) . = ..()
return FALSE if(!.)
return
var/mob/screenmob = viewmob || mymob var/mob/screenmob = viewmob || mymob
if(!screenmob.client.prefs.ghost_hud) if(!screenmob.client.prefs.ghost_hud)
screenmob.client.screen -= static_inventory screenmob.client.screen -= static_inventory

View File

@@ -205,13 +205,16 @@
return TRUE return TRUE
/datum/hud/human/show_hud(version = 0,mob/viewmob) /datum/hud/human/show_hud(version = 0,mob/viewmob)
if(!..()) . = ..()
return FALSE if(!.)
return
var/mob/screenmob = viewmob || mymob var/mob/screenmob = viewmob || mymob
hidden_inventory_update(screenmob) hidden_inventory_update(screenmob)
/datum/hud/robot/show_hud(version = 0, mob/viewmob) /datum/hud/robot/show_hud(version = 0, mob/viewmob)
..() . = ..()
if(!.)
return
update_robot_modules_display() update_robot_modules_display()
/datum/hud/proc/hidden_inventory_update() /datum/hud/proc/hidden_inventory_update()