From 1201257b11a599642a3bc8e92882e8def486543a Mon Sep 17 00:00:00 2001 From: bonkmaykr Date: Mon, 29 Jan 2024 04:39:01 -0600 Subject: [PATCH] using teleport() causes dementia... smh --- src/main.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 2c2021b..b3df2b8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -785,7 +785,8 @@ void handleTeleportRequest(internalTypes::markEntry details) { sleep(1); std::cout << "info: requesting to join room \"" + details.room + "\"\n"; - roomIDReq(&roomsock, details.room); + //roomIDReq(&roomsock, details.room); //fatal error + room = details.room; std::cout << "info: updating goto destination\n"; realLocation = details.url; @@ -795,11 +796,12 @@ void handleTeleportRequest(internalTypes::markEntry details) { std::to_string(details.position.y) + ", " + std::to_string(details.position.z) + ", " + std::to_string(details.position.yaw) + "\n"; - teleport(&roomsock, - details.position.x, - details.position.y, - details.position.z, - details.position.yaw); + xPos = details.position.x; + yPos = details.position.y; + zPos = details.position.z; + direction = details.position.yaw; + + std::cout << "info: done! initiating watchdog\n"; } // unimplemented