1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

* dead stacks won't be displayed in battle queue

* fixed bug with pathfinder
This commit is contained in:
mateuszb
2008-09-20 12:33:37 +00:00
parent ca1dbfe949
commit 8c937d92ad
2 changed files with 3 additions and 1 deletions

View File

@@ -387,6 +387,7 @@ void CBattleInterface::show(SDL_Surface * to)
std::vector<CStack> stacksSorted;
for(int v=0; v<stacks.size(); ++v)
{
if(stacks[v].alive()) //we don't want dead stacks to be there
stacksSorted.push_back(stacks[v]);
}
std::stable_sort(stacksSorted.begin(), stacksSorted.end(), cmpst2);

View File

@@ -43,6 +43,7 @@ CGObjectInstance * createObject(int id, int subid, int3 pos, int owner)
nobj->defInfo->id = 34;
nobj->defInfo->subid = subid;
nobj->defInfo->printPriority = 0;
nobj->defInfo->visitDir = 0xff;
nobj->type = VLC->heroh->heroes[subid];
for(int i=0;i<6;i++)
{