Skip to content

Commit

Permalink
Client: Fix "Teleport To" not working through walls
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Aug 7, 2022
1 parent d12692b commit eba0b4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mods/multiplayer/NierClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ void NierClient::on_draw_ui() {
auto controlled = ents->getPossessedEntity();

if (controlled != nullptr) {
*controlled->entity->getPosition() = *(Vector3f*)&it.second->getPlayerData().position();
//*controlled->entity->getPosition() = *(Vector3f*)&it.second->getPlayerData().position();
controlled->entity->setPosRotResetHap(Vector4f{*(Vector3f*)&it.second->getPlayerData().position(), 1.0f}, glm::identity<glm::quat>());
}
}

Expand Down

0 comments on commit eba0b4f

Please sign in to comment.