]> git.mxchange.org Git - flightgear.git/commitdiff
Make units of a function explicit.
authorJames Turner <zakalawe@mac.com>
Wed, 27 Mar 2013 23:31:22 +0000 (23:31 +0000)
committerJames Turner <zakalawe@mac.com>
Wed, 27 Mar 2013 23:31:22 +0000 (23:31 +0000)
src/AIModel/AIManager.cxx
src/AIModel/AIManager.hxx

index bf7fe5c7718e6ea00199a7091d90451fcc169ca6..0771b2f24d655a4fc0574030f7077b8bdca9b537 100644 (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;
index 233b708eefa0e213e0987c39e0ba0535523f3f6f..98b461cb2e7dff262ed279dd8d566f9040862814 100644 (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);