mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-02 16:36:53 +01:00
Merge feat/eu07m-skinning into feat/eu07m-clips
This commit is contained in:
@@ -47,6 +47,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include <map>
|
||||
#include <sstream>
|
||||
#include "application/editormodeselftest.h"
|
||||
#include "physics/vehicle.h"
|
||||
|
||||
editor_mode::selftest_result editor_mode::selftest_scene(std::string const &command, std::istringstream &words)
|
||||
{
|
||||
@@ -266,8 +267,8 @@ editor_mode::selftest_result editor_mode::selftest_scene(std::string const &comm
|
||||
auto const head{vehicle->HeadPosition()};
|
||||
auto const front{vehicle->VectorFront()};
|
||||
auto const coupler = [&](int const End) {
|
||||
auto const &coupler{vehicle->MoverParameters->Couplers[End]};
|
||||
return coupler.Connected != nullptr ? coupler.Connected->Name + "/" + std::to_string(coupler.CouplingFlag) : std::string{"-"};
|
||||
auto const &coupler{vehicle->physics->Couplers[End]};
|
||||
return coupler.Connected != nullptr ? coupler.Connected->Name + "/" + std::to_string(coupler.CouplingFlag.Bits()) : std::string{"-"};
|
||||
};
|
||||
WriteLog(format("SELFTEST vehicle %s head %.2f %.2f front %.2f %.2f dir %d coupler0 %s coupler1 %s", vehicle->name().c_str(), head.x, head.z, front.x, front.z, vehicle->iDirection, coupler(0).c_str(), coupler(1).c_str()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user