mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
@@ -603,7 +603,11 @@ void CCastleInterface::buildingClicked(int building)
|
||||
/*Tower*/ case 2://Artifact Merchant
|
||||
/*Dungeon*/ case 5://Artifact Merchant
|
||||
/*Conflux*/ case 8://Artifact Merchant
|
||||
GH.pushInt(new CMarketplaceWindow(town, town->visitingHero, RESOURCE_ARTIFACT));
|
||||
if(town->visitingHero)
|
||||
GH.pushInt(new CMarketplaceWindow(town, town->visitingHero, RESOURCE_ARTIFACT));
|
||||
else
|
||||
LOCPLINT->showInfoDialog(boost::str(boost::format(CGI->generaltexth->allTexts[273]) % b->Name())); //Only visiting heroes may use the %s.
|
||||
|
||||
break;
|
||||
default:
|
||||
defaultBuildingClicked(building);
|
||||
|
@@ -1084,7 +1084,6 @@ bool CPlayerInterface::moveHero( const CGHeroInstance *h, CGPath path )
|
||||
bool guarded = CGI->mh->map->isInTheMap(cb->guardingCreaturePosition(endpos - int3(1, 0, 0)));
|
||||
|
||||
cb->moveHero(h,endpos);
|
||||
curTile = cb->getTileInfo(endpos);
|
||||
|
||||
eventsM.unlock();
|
||||
while(stillMoveHero.data != STOP_MOVE && stillMoveHero.data != CONTINUE_MOVE)
|
||||
|
Reference in New Issue
Block a user