mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
* Started making support for garrison window. Leaving guardians in flagged mines.
This commit is contained in:
@ -1292,7 +1292,10 @@ void CGMine::onHeroVisit( const CGHeroInstance * h ) const
|
||||
return;
|
||||
|
||||
if(h->tempOwner == tempOwner) //we're visiting our mine
|
||||
return; //TODO: leaving garrison
|
||||
{
|
||||
cb->showGarrisonDialog(id,h->id,0);
|
||||
return;
|
||||
}
|
||||
|
||||
//TODO: check if mine is guarded
|
||||
cb->setOwner(id,h->tempOwner); //not ours? flag it!
|
||||
|
Reference in New Issue
Block a user