better message
This commit is contained in:
parent
22421f6687
commit
85c48d4e2e
1 changed files with 3 additions and 3 deletions
|
@ -580,8 +580,8 @@ void Hitch::integrate (float dt)
|
||||||
if (_dist>_towLength*1.00001)
|
if (_dist>_towLength*1.00001)
|
||||||
{
|
{
|
||||||
std::stringstream message;
|
std::stringstream message;
|
||||||
message<<"Could not lock hitch (tow length is insufficient) on hitch '"
|
message<<"Could not lock hitch (tow length is insufficient) on hitch "
|
||||||
<<_node->getPath()<<"' !";
|
<<_node->getName()<<" "<<_node->getIndex()<<"!";
|
||||||
fgSetString("/sim/messages/pilot", message.str().c_str());
|
fgSetString("/sim/messages/pilot", message.str().c_str());
|
||||||
_open=true;
|
_open=true;
|
||||||
return;
|
return;
|
||||||
|
@ -592,7 +592,7 @@ void Hitch::integrate (float dt)
|
||||||
if (_node->getBoolValue("broken",false)&&_open)
|
if (_node->getBoolValue("broken",false)&&_open)
|
||||||
message<<"Oh no, the tow is broken";
|
message<<"Oh no, the tow is broken";
|
||||||
else
|
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());
|
fgSetString("/sim/messages/pilot", message.str().c_str());
|
||||||
_oldOpen=_open;
|
_oldOpen=_open;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue