]> git.localhorst.tv Git - l2e.git/commitdiff
fix bug in select attack type state that caused the tag positioning to go nuts
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 10 Aug 2012 10:23:51 +0000 (12:23 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 10 Aug 2012 10:23:51 +0000 (12:23 +0200)
src/battle/states/SelectAttackType.cpp

index c0073208195e923086eeadb9f744a5764545cdda..1039e513125432ed9c4c509889a17543ff6250a5 100644 (file)
@@ -97,9 +97,10 @@ void SelectAttackType::HandleInput(const Input &input) {
                }
        } else if (input.JustPressed(Input::ACTION_B)) {
                battle->PreviousHero();
-               battle->SetAttackType(AttackChoice::UNDECIDED);
                if (battle->BeforeFirstHero()) {
                        ctrl->ChangeState(new SelectMoveAction(battle));
+               } else {
+                       battle->SetAttackType(AttackChoice::UNDECIDED);
                }
        }