From a28ffd844d180329f49a478ef1b3a623e87563d4 Mon Sep 17 00:00:00 2001 From: Bedshaped Date: Wed, 21 Sep 2016 05:03:29 +0100 Subject: [PATCH] Fixes #963 (#976) --- code/modules/mob/living/carbon/alien/life.dm | 12 +++++------- html/changelogs/Bedshaped-PR-976.yml | 6 ++++++ 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 html/changelogs/Bedshaped-PR-976.yml diff --git a/code/modules/mob/living/carbon/alien/life.dm b/code/modules/mob/living/carbon/alien/life.dm index c85bbe67384..2dc4f54845b 100644 --- a/code/modules/mob/living/carbon/alien/life.dm +++ b/code/modules/mob/living/carbon/alien/life.dm @@ -116,19 +116,17 @@ /mob/living/carbon/alien/proc/handle_regular_hud_updates() - if(is_ventcrawling == 0) // Stops sight returning to normal if inside a vent - sight = species.vision_flags - if (stat == 2 || (XRAY in src.mutations)) sight |= SEE_TURFS sight |= SEE_MOBS sight |= SEE_OBJS see_in_dark = 8 see_invisible = SEE_INVISIBLE_LEVEL_TWO - else if (stat != 2) - sight &= ~SEE_TURFS - sight &= ~SEE_MOBS - sight &= ~SEE_OBJS + else if (stat != 2 && is_ventcrawling == 0) + if (species.vision_flags) + sight = species.vision_flags + else + sight &= ~(SEE_TURFS|SEE_MOBS|SEE_OBJS) see_in_dark = 2 see_invisible = SEE_INVISIBLE_LIVING diff --git a/html/changelogs/Bedshaped-PR-976.yml b/html/changelogs/Bedshaped-PR-976.yml new file mode 100644 index 00000000000..b21081d7c2c --- /dev/null +++ b/html/changelogs/Bedshaped-PR-976.yml @@ -0,0 +1,6 @@ +author: Bedshaped + +delete-after: True + +changes: + - bugfix: "Fixed Diona Nymphs not having vision while ventcrawling."