1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Disable broken visitation of external markets for VCAI

This commit is contained in:
Ivan Savenko 2024-04-22 15:46:51 +03:00
parent 0b01cc4676
commit 1b6d6c3f5e

View File

@ -146,7 +146,10 @@ TSubgoal CollectRes::whatToDoToTrade()
markets.erase(boost::remove_if(markets, [](const IMarket * market) -> bool
{
auto * o = dynamic_cast<const CGObjectInstance *>(market);
if(o && !(o->ID == Obj::TOWN && o->tempOwner == ai->playerID))
// FIXME: disabled broken visitation of external markets
//if(o && !(o->ID == Obj::TOWN && o->tempOwner == ai->playerID))
if(o && o->ID == Obj::TOWN)
{
if(!ai->isAccessible(o->visitablePos()))
return true;