]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/SelectAttackType.cpp
removed some outdated TODOs
[l2e.git] / src / battle / states / SelectAttackType.cpp
index 17260928af9455b7a6aaa40468a4cd52276e0da5..3603e1bb529aeb7eb587e06c691037786ddcf925 100644 (file)
@@ -106,7 +106,6 @@ void SelectAttackType::HandleEvents(const Input &input) {
        }
 
        if (battle->AttackSelectionDone()) {
-               // TODO: switch to battle animation instead
                ctrl->PopState();
        }
 }
@@ -125,8 +124,8 @@ void SelectAttackType::Render(SDL_Surface *screen) {
 
 void SelectAttackType::RenderMenu(SDL_Surface *screen, const Vector<int> &offset) {
        Point<int> position(
-                       (battle->BackgroundWidth() - battle->GetAttackTypeMenu().Width()) / 2,
-                       battle->BackgroundHeight() - battle->GetAttackTypeMenu().Height() - battle->GetAttackTypeMenu().Height() / 2);
+                       (battle->Width() - battle->GetAttackTypeMenu().Width()) / 2,
+                       battle->Height() - battle->GetAttackTypeMenu().Height() - battle->GetAttackTypeMenu().Height() / 2);
        battle->GetAttackTypeMenu().Render(screen, position + offset);
 }