Tweaks species night vision (#11416)

This commit is contained in:
Alberyk
2021-03-15 21:51:49 -03:00
committed by GitHub
parent 8cc103a7f3
commit c1793a4a33
5 changed files with 28 additions and 2 deletions

View File

@@ -42,6 +42,12 @@
if(!vision_mechanical_color && (status & ORGAN_ROBOT))
return
if(owner.client && ((owner.client.view != world.view) || (owner.client.pixel_x != 0) || (owner.client.pixel_y != 0))) //using binoculars
return
if(owner.machine && owner.machine.check_eye(owner) >= 0 && owner.client.eye != owner) //using cameras
return
if(!night_vision)
enable_night_vision()
else