1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Hackfix for ghost stack draw.

This commit is contained in:
AlexVinS 2016-02-29 05:09:13 +03:00
parent f890037008
commit ace52cfdb1

View File

@ -3435,7 +3435,8 @@ BattleObjectsByHex CBattleInterface::sortObjectsByHex()
sorted.hex[getCurrentPosition(stack)].alive.push_back(stack);
}
}
else
//FIXME: hack to ignore ghost stacks
else if(!(creAnims[stack->ID]->getType() == CCreatureAnim::DEAD && stack->isGhost()))
sorted.hex[stack->position].dead.push_back(stack);
}