1
0
Fork 0

Make units of a function explicit.

This commit is contained in:
James Turner 2013-03-27 23:31:22 +00:00
parent 1a4993f08b
commit c2546a431d
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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);