mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 01:53:35 +01:00
Fixes flash check runtime when flashee does not have eyes (#26409)
* fixes null runtime * the ASCII code for " " is 32, or in 0x0020 in hexadecimal * Update code/modules/mob/living/carbon/carbon_procs.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: chuga-git <98280110+chuga-git@users.noreply.github.com> --------- Signed-off-by: chuga-git <98280110+chuga-git@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
@@ -350,7 +350,7 @@
|
||||
var/obj/item/organ/internal/eyes/E = get_int_organ(/obj/item/organ/internal/eyes)
|
||||
. = ..()
|
||||
|
||||
if((E && (E.status & ORGAN_DEAD)) || !. || E.is_broken())
|
||||
if((E?.status & ORGAN_DEAD) || E?.is_broken() || !.)
|
||||
return FALSE
|
||||
|
||||
/mob/living/carbon/flash_eyes(intensity = 1, override_blindness_check = 0, affect_silicon = 0, visual = 0, laser_pointer = FALSE, type = /atom/movable/screen/fullscreen/stretch/flash)
|
||||
|
||||
Reference in New Issue
Block a user