- // "Do I have an Owner?"
- // Not quite the same as "Am I an orphan" although the difference is kind of pointless
- AIP_COND_031
- if ( !entity->IsSummon ( ) ) //Not a summon? automatic fail
- return AI_FAILURE
- CMap* map = GServer->MapList.Index [ entity->Position->Map ] //get the local map
- CCharacter* caller = map->GetCharInMap ( entity->owner ) //get my owner
- if ( caller == NULL ) //No valid owner. FAIL
- return AI_FAILURE
- return AI_SUCCESS //Yup I have an owner
Kind of pointless check to see if I am a summon WITH an owner rather than a summon WITHOUT an owner.
Why couldn't we have decided this elsewhere and saved an entire function?