1
0
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:
Michał W. Urbańczyk
2009-04-12 00:58:41 +00:00
parent d72d988a9c
commit f9aebcc4bd
20 changed files with 259 additions and 48 deletions

View File

@ -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!