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:
@ -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())
|
||||
|
Reference in New Issue
Block a user