Core/Misc: Change how Position struct is retrieved

Update Position::GetPosition() and similar methods signatures to reflect 2a4c9bcaf9 changes by return a Position object instead of accepting a Position parameter by reference.
This commit is contained in:
jackpoz
2014-04-25 21:19:30 +02:00
parent dc8a7a6fa5
commit 2585e799f9
51 changed files with 102 additions and 158 deletions
+1 -2
View File
@@ -1382,8 +1382,7 @@ public:
}
else
{
Position pos;
transport->GetPosition(&pos);
Position pos = transport->GetPosition();
handler->PSendSysMessage("Transport %s is %s", transport->GetName().c_str(), transport->GetGoState() == GO_STATE_READY ? "stopped" : "moving");
handler->PSendSysMessage("Transport position: %s", pos.ToString().c_str());
return true;