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:
parent
0b01cc4676
commit
1b6d6c3f5e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user