From: James Turner Date: Wed, 27 Mar 2013 23:31:22 +0000 (+0000) Subject: Make units of a function explicit. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c2546a431d27afb91f185c5bf25b282092fd40e1;p=flightgear.git Make units of a function explicit. --- diff --git a/src/AIModel/AIManager.cxx b/src/AIModel/AIManager.cxx index bf7fe5c77..0771b2f24 100644 --- a/src/AIModel/AIManager.cxx +++ b/src/AIModel/AIManager.cxx @@ -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; diff --git a/src/AIModel/AIManager.hxx b/src/AIModel/AIManager.hxx index 233b708ee..98b461cb2 100644 --- a/src/AIModel/AIManager.hxx +++ b/src/AIModel/AIManager.hxx @@ -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);