Fixing blindness (#1317)

Fixes #1315
This commit is contained in:
skull132
2016-12-26 12:49:40 +02:00
committed by GitHub
parent 22c43472ae
commit 1ee2bc7f43
2 changed files with 3 additions and 3 deletions

View File

@@ -381,7 +381,7 @@
H.eye_blind = max(H.eye_blind, 1)
if(H.blind)
H.blind.invisibility = (H.eye_blind ? 18 : 0)
H.blind.invisibility = (H.eye_blind ? 0 : 101)
if(!H.client)//no client, no screen to update
return 1

View File

@@ -143,9 +143,9 @@
if(blind)
if(eye_blind)
blind.invisibility = 18
else
blind.invisibility = 0
else
blind.invisibility = 101
if (disabilities & NEARSIGHTED)
client.screen += global_hud.vimpaired
if (eye_blurry)