rendermax: lights off when sleeping

develop
jj 2013-06-24 02:27:43 +02:00 committed by Warmist
parent de8a76e37f
commit 20d4707b00
1 changed files with 1 additions and 1 deletions

@ -558,7 +558,7 @@ void lightingEngineViewscreen::doOcupancyAndLights()
(u->pos.x < window_x || u->pos.x >= window_x+vpW) || (u->pos.x < window_x || u->pos.x >= window_x+vpW) ||
(u->pos.y < window_y || u->pos.y >= window_y+vpH)) (u->pos.y < window_y || u->pos.y >= window_y+vpH))
continue; continue;
if (DFHack::Units::isCitizen(u)) if (DFHack::Units::isCitizen(u) && !u->counters.unconscious)
addLight(getIndex(u->pos.x-window_x+1, u->pos.y-window_y+1),citizen); addLight(getIndex(u->pos.x-window_x+1, u->pos.y-window_y+1),citizen);
} }
} }