mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 00:03:50 +00:00
Fix target circle jumping ahead to spline waypoints
- use interpolated target position (getX/Y/Z) for selection circle placement - avoids drawing circle at movement destination before creature arrives - keeps previous target interpolation update guarantees
This commit is contained in:
parent
267825bbcb
commit
c00fc34bc2
1 changed files with 1 additions and 1 deletions
|
|
@ -393,7 +393,7 @@ void GameScreen::render(game::GameHandler& gameHandler) {
|
||||||
auto target = gameHandler.getTarget();
|
auto target = gameHandler.getTarget();
|
||||||
if (target) {
|
if (target) {
|
||||||
targetGLPos = core::coords::canonicalToRender(
|
targetGLPos = core::coords::canonicalToRender(
|
||||||
glm::vec3(target->getLatestX(), target->getLatestY(), target->getLatestZ()));
|
glm::vec3(target->getX(), target->getY(), target->getZ()));
|
||||||
renderer->setTargetPosition(&targetGLPos);
|
renderer->setTargetPosition(&targetGLPos);
|
||||||
|
|
||||||
// Selection circle color: WoW-canonical level-based colors
|
// Selection circle color: WoW-canonical level-based colors
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue