1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-06 02:13:14 +00:00

Improve esmtool destination position/rotation formatting

This commit is contained in:
Alexei Kotov 2025-12-27 01:02:55 +03:00
parent 88e15e7246
commit 24821b8e85

View file

@ -176,9 +176,9 @@ namespace
{
for (const ESM::Transport::Dest& dest : transport)
{
std::cout << std::format(" Destination Position: ({:12.3f},{:12.3f},{:12.3f})\n", dest.mPos.pos[0],
std::cout << std::format(" Destination Position: ({:12.3f}, {:12.3f}, {:12.3f})\n", dest.mPos.pos[0],
dest.mPos.pos[1], dest.mPos.pos[2]);
std::cout << std::format(" Destination Rotation: ({:9.6f},{:9.6f},{:9.6f})\n",
std::cout << std::format(" Destination Rotation: ({:12.3f}, {:12.3f}, {:12.3f})\n",
osg::RadiansToDegrees(dest.mPos.rot[0]), osg::RadiansToDegrees(dest.mPos.rot[1]),
osg::RadiansToDegrees(dest.mPos.rot[2]));
if (!dest.mCellName.empty())