forked from Wirlaburla/P3NG0
minor improvements
This commit is contained in:
parent
1201257b11
commit
3a758e1ab7
11
src/main.cpp
11
src/main.cpp
|
@ -786,21 +786,22 @@ void handleTeleportRequest(internalTypes::markEntry details) {
|
||||||
|
|
||||||
std::cout << "info: requesting to join room \"" + details.room + "\"\n";
|
std::cout << "info: requesting to join room \"" + details.room + "\"\n";
|
||||||
//roomIDReq(&roomsock, details.room); //fatal error
|
//roomIDReq(&roomsock, details.room); //fatal error
|
||||||
room = details.room;
|
//room = details.room;
|
||||||
|
|
||||||
std::cout << "info: updating goto destination\n";
|
|
||||||
realLocation = details.url;
|
|
||||||
|
|
||||||
std::cout << "info: setting position at " +
|
std::cout << "info: setting position at " +
|
||||||
std::to_string(details.position.x) + ", " +
|
std::to_string(details.position.x) + ", " +
|
||||||
std::to_string(details.position.y) + ", " +
|
std::to_string(details.position.y) + ", " +
|
||||||
std::to_string(details.position.z) + ", " +
|
std::to_string(details.position.z) + ", " +
|
||||||
std::to_string(details.position.yaw) + "\n";
|
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;
|
yPos = details.position.y;
|
||||||
zPos = details.position.z;
|
zPos = details.position.z;
|
||||||
direction = details.position.yaw;
|
direction = details.position.yaw;
|
||||||
|
|
||||||
|
std::cout << "info: updating goto destination\n";
|
||||||
|
realLocation = details.url;
|
||||||
|
|
||||||
std::cout << "info: done! initiating watchdog\n";
|
std::cout << "info: done! initiating watchdog\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user