using teleport() causes dementia... smh
This commit is contained in:
parent
5d8b8e0f39
commit
1201257b11
14
src/main.cpp
14
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user