mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +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
|
markets.erase(boost::remove_if(markets, [](const IMarket * market) -> bool
|
||||||
{
|
{
|
||||||
auto * o = dynamic_cast<const CGObjectInstance *>(market);
|
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()))
|
if(!ai->isAccessible(o->visitablePos()))
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user