diff --git a/src/level/robotmain.cpp b/src/level/robotmain.cpp index 7ed6ef21..23c9c9db 100644 --- a/src/level/robotmain.cpp +++ b/src/level/robotmain.cpp @@ -981,10 +981,13 @@ bool CRobotMain::ProcessEvent(Event &event) { CLevelParserLine line("CreateObject"); line.AddParam("type", MakeUnique(obj->GetType())); + Math::Vector pos = obj->GetPosition()/g_unit; pos.y = 0.0f; line.AddParam("pos", MakeUnique(pos)); - line.AddParam("dir", MakeUnique(obj->GetRotationY())); + + float dir = Math::NormAngle(obj->GetRotationY()) / Math::PI; + line.AddParam("dir", MakeUnique(dir)); std::stringstream ss; ss << line;