Address code review

This commit is contained in:
chafla
2021-06-29 01:01:49 -07:00
parent d98ca95ff1
commit c9e796da8d
2 changed files with 2 additions and 4 deletions
@@ -67,7 +67,6 @@
show_rads()
/mob/proc/show_rads(range)
var/mob/user = src
var/list/rad_places = list()
for(var/datum/component/radioactive/thing in SSradiation.processing)
var/atom/owner = thing.parent
@@ -79,7 +78,7 @@
for(var/i in rad_places)
var/turf/place = i
if(range != -1 && get_dist(user, place) >= range)
if(range != -1 && get_dist(src, place) >= range)
continue
var/strength = round(rad_places[i] / 1000, 0.1)
var/image/pic = image(loc = place)
@@ -89,7 +88,7 @@
MA.layer = RAD_TEXT_LAYER
MA.plane = GAME_PLANE
pic.appearance = MA
flick_overlay(pic, list(user.client), 10)
flick_overlay(pic, list(client), 10)
/obj/item/clothing/glasses/meson/engine/proc/show_rads()
@@ -111,7 +111,6 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
/mob/dead/observer/process()
if(seerads)
show_rads(30)
return
// This seems stupid, but it's the easiest way to avoid absolutely ridiculous shit from happening
// Copying an appearance directly from a mob includes it's verb list, it's invisibility, it's alpha, and it's density