dead flag -> !isActive

develop
PatrikLundell 2018-06-14 12:34:41 +02:00
parent 3be27a49b5
commit cac749429a
1 changed files with 1 additions and 1 deletions

@ -798,7 +798,7 @@ void lightingEngineViewscreen::doOcupancyAndLights()
if (DFHack::Units::isCitizen(u) && !u->counters.unconscious)
addLight(getIndex(pos.x,pos.y),matCitizen.makeSource());
creatureLightDef *def=getCreatureDef(u);
if(def && !u->flags1.bits.dead)
if(def && Units::isActive(u))
{
addLight(getIndex(pos.x,pos.y),def->light.makeSource());
}