Skip to content

Commit

Permalink
Avatar: Reset active animation when initiating an attack
Browse files Browse the repository at this point in the history
This fixes a bug caused by 218ea4e, in which the player would stop on
the last frame of their attack animation if the same attack animation
was used immediately afterwards. Previously, switching to the "stance"
animation would do this reset, but that is no longer the case.
  • Loading branch information
dorkster committed Oct 7, 2024
1 parent 5b3ce47 commit ffc0b75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Avatar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ void Avatar::logic() {
current_power_original = action.power;
act_target = action.target;
attack_anim = power->attack_anim;
resetActiveAnimation();

if (power->new_state == Power::STATE_ATTACK) {
stats.cur_state = StatBlock::ENTITY_POWER;
Expand Down
2 changes: 1 addition & 1 deletion src/Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ FLARE. If not, see http://www.gnu.org/licenses/

#include <SDL.h>

Version VersionInfo::ENGINE(1, 14, 65);
Version VersionInfo::ENGINE(1, 14, 66);
Version VersionInfo::MIN(0, 0, 0);
Version VersionInfo::MAX(USHRT_MAX, USHRT_MAX, USHRT_MAX);

Expand Down

0 comments on commit ffc0b75

Please sign in to comment.