X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.cpp;h=1b4401065e9d2c17cc1e8961c8941e1dc00d7c08;hb=e559a146d268996a3367e370213b09a3b190e0bc;hp=6aeaae5f7e4ee98ac845c79c26f558abefba03c4;hpb=572a3272ba5c470252b2c13384b5913aa023d70a;p=l2e.git diff --git a/src/battle/BattleState.cpp b/src/battle/BattleState.cpp index 6aeaae5..1b44010 100644 --- a/src/battle/BattleState.cpp +++ b/src/battle/BattleState.cpp @@ -266,8 +266,12 @@ void BattleState::RenderMonsters(SDL_Surface *screen, const Vector &offset) void BattleState::RenderHeroes(SDL_Surface *screen, const Vector &offset) { for (int i(0); i < numHeroes; ++i) { - int row(heroes[i].Health() > 0 ? 0 : 2); - heroes[i].Sprite()->DrawCenterBottom(screen, heroesPositions[i] + offset, 1, row); + if (HeroAnimationAt(i).Running()) { + HeroAnimationAt(i).DrawCenterBottom(screen, heroesPositions[i] + offset); + } else { + int row(heroes[i].Health() > 0 ? 0 : 2); + heroes[i].Sprite()->DrawCenterBottom(screen, heroesPositions[i] + offset, 1, row); + } } }