mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Cleaned up and fixed ownership checks for market netpack
This commit is contained in:
@@ -698,7 +698,11 @@ void CCastleBuildings::buildingClicked(BuildingID building, BuildingSubID::EBuil
|
||||
break;
|
||||
|
||||
case BuildingID::MARKETPLACE:
|
||||
GH.windows().createAndPushWindow<CMarketplaceWindow>(town, town->visitingHero);
|
||||
// can't use allied marketplace
|
||||
if (town->getOwner() == LOCPLINT->playerID)
|
||||
GH.windows().createAndPushWindow<CMarketplaceWindow>(town, town->visitingHero);
|
||||
else
|
||||
enterBuilding(building);
|
||||
break;
|
||||
|
||||
case BuildingID::BLACKSMITH:
|
||||
|
||||
Reference in New Issue
Block a user