mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
fix(gameplay): stabilize run animation and clean ghost/death visuals
This commit is contained in:
parent
1a4b21955c
commit
cebca9a882
6 changed files with 51 additions and 27 deletions
|
|
@ -845,7 +845,9 @@ void GameScreen::render(game::GameHandler& gameHandler) {
|
|||
// Update renderer face-target position and selection circle
|
||||
auto* renderer = core::Application::getInstance().getRenderer();
|
||||
if (renderer) {
|
||||
renderer->setInCombat(gameHandler.isInCombat());
|
||||
renderer->setInCombat(gameHandler.isInCombat() &&
|
||||
!gameHandler.isPlayerDead() &&
|
||||
!gameHandler.isPlayerGhost());
|
||||
static glm::vec3 targetGLPos;
|
||||
if (gameHandler.hasTarget()) {
|
||||
auto target = gameHandler.getTarget();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue