rendermax: lights off when sleeping

develop
jj 2013-06-24 02:27:43 +02:00
parent b95683adb2
commit 19952b9139
1 changed files with 1 additions and 1 deletions

@ -535,7 +535,7 @@ void lightingEngineViewscreen::doOcupancyAndLights()
(u->pos.x < window_x || u->pos.x >= window_x+vpW) ||
(u->pos.y < window_y || u->pos.y >= window_y+vpH))
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);
}
}