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:
@@ -387,7 +387,8 @@ void CBattleInterface::show(SDL_Surface * to)
|
||||
std::vector<CStack> stacksSorted;
|
||||
for(int v=0; v<stacks.size(); ++v)
|
||||
{
|
||||
stacksSorted.push_back(stacks[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);
|
||||
int startFrom = -1;
|
||||
|
@@ -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++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user