1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

* bug 492 fixed

* boost::filesystem version set to 2 (should work with all relatively new versions of boost)
This commit is contained in:
mateuszb
2011-02-24 15:05:21 +00:00
parent 91d0ea64de
commit ba7eb6ce49
4 changed files with 23 additions and 1 deletions

View File

@ -518,6 +518,18 @@ int3 CGObjectInstance::visitablePos() const
return pos - getVisitableOffset();
}
bool CGObjectInstance::isVisitable() const
{
for(int g=0; g<ARRAY_COUNT(defInfo->visitMap); ++g)
{
if(defInfo->visitMap[g] != 0)
{
return true;
}
}
return false;
}
static int lowestSpeed(const CGHeroInstance * chi)
{
if(!chi->Slots().size())