|
|
@ -294,9 +294,14 @@ void CMissionBaseBehaviour::addCompassTarget( uint32 targetId, bool isBot, bool
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
nlassert(_Mission->getCompass(freeIdx) == NULL);
|
|
|
|
if (freeIdx < 8)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (_Mission->getCompass(freeIdx) == NULL)
|
|
|
|
|
|
|
|
{
|
|
|
|
EGSPD::CMissionCompassPD * compass = _Mission->addToCompass(freeIdx);
|
|
|
|
EGSPD::CMissionCompassPD * compass = _Mission->addToCompass(freeIdx);
|
|
|
|
nlassert(compass != NULL);
|
|
|
|
|
|
|
|
|
|
|
|
if (compass)
|
|
|
|
|
|
|
|
{
|
|
|
|
if (c != NULL)
|
|
|
|
if (c != NULL)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
compass->setBotId(c->getAlias());
|
|
|
|
compass->setBotId(c->getAlias());
|
|
|
@ -329,9 +334,8 @@ void CMissionBaseBehaviour::addCompassTarget( uint32 targetId, bool isBot, bool
|
|
|
|
|
|
|
|
|
|
|
|
targetId = CAIAliasTranslator::Invalid;
|
|
|
|
targetId = CAIAliasTranslator::Invalid;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
}
|
|
|
|
{
|
|
|
|
}
|
|
|
|
nlstop;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|