From 3a758e1ab7d6ad15d239397c5ea3964be59442e6 Mon Sep 17 00:00:00 2001 From: bonkmaykr Date: Mon, 29 Jan 2024 04:46:28 -0600 Subject: [PATCH] minor improvements --- src/main.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b3df2b8..4046902 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -786,21 +786,22 @@ void handleTeleportRequest(internalTypes::markEntry details) { std::cout << "info: requesting to join room \"" + details.room + "\"\n"; //roomIDReq(&roomsock, details.room); //fatal error - room = details.room; - - std::cout << "info: updating goto destination\n"; - realLocation = details.url; + //room = details.room; std::cout << "info: setting position at " + std::to_string(details.position.x) + ", " + std::to_string(details.position.y) + ", " + std::to_string(details.position.z) + ", " + std::to_string(details.position.yaw) + "\n"; - xPos = details.position.x; + teleport(&roomsock, xPos, yPos, zPos, direction); // force positional update immediately + xPos = details.position.x; // remember so that the idle thread doesn't rubberband us yPos = details.position.y; zPos = details.position.z; direction = details.position.yaw; + std::cout << "info: updating goto destination\n"; + realLocation = details.url; + std::cout << "info: done! initiating watchdog\n"; }