]> git.mxchange.org Git - flightgear.git/commitdiff
better message
authormfranz <mfranz>
Tue, 23 Jan 2007 23:40:08 +0000 (23:40 +0000)
committermfranz <mfranz>
Tue, 23 Jan 2007 23:40:08 +0000 (23:40 +0000)
src/FDM/YASim/Hitch.cpp

index 97458f1a82ef1f82cf172e92470cba9659f61ce8..96268e8a816afef04ca1c5b2d452c054518e76af 100755 (executable)
@@ -580,8 +580,8 @@ void Hitch::integrate (float dt)
             if (_dist>_towLength*1.00001)
             {
                 std::stringstream message;
-                message<<"Could not lock hitch (tow length is insufficient) on hitch '"
-                       <<_node->getPath()<<"' !";
+                message<<"Could not lock hitch (tow length is insufficient) on hitch "
+                       <<_node->getName()<<" "<<_node->getIndex()<<"!";
                 fgSetString("/sim/messages/pilot", message.str().c_str());
                 _open=true;
                 return;
@@ -592,7 +592,7 @@ void Hitch::integrate (float dt)
         if (_node->getBoolValue("broken",false)&&_open)
             message<<"Oh no, the tow is broken";
         else
-            message<<(_open?"Opened hitch '":"Locked hitch '")<<_node->getPath()<<"'!";
+            message<<(_open?"Opened hitch ":"Locked hitch ")<<_node->getName()<<" "<<_node->getIndex()<<"!";
         fgSetString("/sim/messages/pilot", message.str().c_str());
         _oldOpen=_open;
     }