Make units of a function explicit.
This commit is contained in:
parent
1a4993f08b
commit
c2546a431d
2 changed files with 3 additions and 3 deletions
|
@ -454,7 +454,7 @@ FGAIManager::calcCollision(double alt, double lat, double lon, double fuse_range
|
|||
|
||||
int id = (*ai_list_itr)->getID();
|
||||
|
||||
double range = calcRange(cartPos, (*ai_list_itr));
|
||||
double range = calcRangeFt(cartPos, (*ai_list_itr));
|
||||
|
||||
//SG_LOG(SG_AI, SG_DEBUG, "AIManager: AI list size "
|
||||
// << ai_list.size()
|
||||
|
@ -482,7 +482,7 @@ FGAIManager::calcCollision(double alt, double lat, double lon, double fuse_range
|
|||
}
|
||||
|
||||
double
|
||||
FGAIManager::calcRange(const SGVec3d& aCartPos, FGAIBase* aObject) const
|
||||
FGAIManager::calcRangeFt(const SGVec3d& aCartPos, FGAIBase* aObject) const
|
||||
{
|
||||
double distM = dist(aCartPos, aObject->getCartPos());
|
||||
return distM * SG_METER_TO_FEET;
|
||||
|
|
|
@ -93,7 +93,7 @@ public:
|
|||
private:
|
||||
void removeDeadItem(FGAIBase* base);
|
||||
|
||||
double calcRange(const SGVec3d& aCartPos, FGAIBase* aObject) const;
|
||||
double calcRangeFt(const SGVec3d& aCartPos, FGAIBase* aObject) const;
|
||||
|
||||
bool loadScenarioCommand(const SGPropertyNode* args);
|
||||
bool unloadScenarioCommand(const SGPropertyNode* args);
|
||||
|
|
Loading…
Reference in a new issue