From 9622a00a9aed574d182f524ead6b100f9dff7130 Mon Sep 17 00:00:00 2001 From: T1ti <40864460+T1ti@users.noreply.github.com> Date: Fri, 26 Jan 2024 22:38:21 +0100 Subject: [PATCH] cleanup --- src/noggit/MapView.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/noggit/MapView.cpp b/src/noggit/MapView.cpp index e9400222..502013c4 100755 --- a/src/noggit/MapView.cpp +++ b/src/noggit/MapView.cpp @@ -5892,12 +5892,11 @@ void MapView::ShowContextMenu(QPoint pos) std::stringstream obj_data; for (auto& obj : _world->get_selected_objects()) { - // std::stringstream obj_data; obj_data << "\"Object : " << obj->instance_model()->file_key().filepath() << "(UID :" << obj->uid << ")\"," << std::endl; obj_data << "\"Scale : " << obj->scale << "\"," << std::endl; // coords string in ts-wow format obj_data << "\"Coords(server): {map:" << _world->getMapID() << ",x:" << (ZEROPOINT - obj->pos.z) << ",y:" << (ZEROPOINT - obj->pos.x) - << ",z:" << obj->pos.y << ",o:"; // << glm::radians(obj->dir.y) << "}\"," << std::endl; + << ",z:" << obj->pos.y << ",o:"; float server_rot = 2 * glm::pi() - glm::pi() / 180.0 * (float(obj->dir.y) < 0 ? fabs(float(obj->dir.y)) + 180.0 : fabs(float(obj->dir.y) - 180.0)); // float server_rot = glm::radians(obj->dir.y) + glm::radians(180.f); @@ -5924,8 +5923,6 @@ void MapView::ShowContextMenu(QPoint pos) f << "\"Saved " << _world->get_selected_model_count() << " objects at : " << QDateTime::currentDateTime().toString("dd MMMM yyyy hh:mm:ss").toStdString() << "\"" << std::endl; f << obj_data.str(); f.close(); - // QClipboard* clipboard = QGuiApplication::clipboard(); - // clipboard->setText(port_command.str().c_str(), QClipboard::Clipboard); } } });