Apply suggestions from code review

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>
This commit is contained in:
S34N
2021-07-28 17:21:48 +01:00
committed by GitHub
co-authored by SabreML
parent 6bb8f30391
commit d48906e131
4 changed files with 7 additions and 8 deletions
+1 -2
View File
@@ -1188,7 +1188,6 @@ so that different stomachs can handle things in different ways VB*/
sight = initial(sight)
lighting_alpha = initial(lighting_alpha)
if(client.eye != src)
var/atom/A = client.eye
if(A.update_remote_sight(src)) //returns 1 if we override all other sight updates.
@@ -1203,7 +1202,7 @@ so that different stomachs can handle things in different ways VB*/
see_in_dark = max(see_in_dark, 8)
if(HAS_TRAIT(src, TRAIT_MESON_VISION))
sight |= (SEE_TURFS)
sight |= SEE_TURFS
lighting_alpha = min(lighting_alpha, LIGHTING_PLANE_ALPHA_MOSTLY_VISIBLE)
if(HAS_TRAIT(src, TRAIT_NIGHT_VISION))
@@ -895,7 +895,7 @@ It'll return null if the organ doesn't correspond, so include null checks when u
H.lighting_alpha = min(H.vision_type.lighting_alpha, H.lighting_alpha)
if(HAS_TRAIT(H, TRAIT_MESON_VISION))
H.sight |= (SEE_TURFS)
H.sight |= SEE_TURFS
H.lighting_alpha = min(H.lighting_alpha, LIGHTING_PLANE_ALPHA_MOSTLY_VISIBLE)
if(HAS_TRAIT(H, TRAIT_THERMAL_VISION))