1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-01 00:45:26 +02:00

It is possible to set on visit query that object is to be removed after visit is over.

Fixes #1263.
This commit is contained in:
Michał W. Urbańczyk
2013-05-14 13:42:52 +00:00
parent 42c2c29976
commit f95e6c233b
7 changed files with 42 additions and 17 deletions

View File

@ -3556,7 +3556,7 @@ void CGMine::onHeroVisit( const CGHeroInstance * h ) const
if(relations == 2) //we're visiting our mine
{
cb->showGarrisonDialog(id,h->id,true,0);
cb->showGarrisonDialog(id,h->id,true);
return;
}
else if (relations == 1)//ally
@ -5833,7 +5833,7 @@ void CGGarrison::onHeroVisit (const CGHeroInstance *h) const
if (!ally)
cb->setOwner(this, h->tempOwner);
cb->showGarrisonDialog(id, h->id, removableUnits, 0);
cb->showGarrisonDialog(id, h->id, removableUnits);
}
ui8 CGGarrison::getPassableness() const