]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/SelectMoveAction.cpp
alternate approach to battle animation
[l2e.git] / src / battle / states / SelectMoveAction.cpp
index 8aa49067df121ee223784ddfaec6d3faca050d15..7eb8fbeb1a8d98b860e692c12edaad6fc7d53cdc 100644 (file)
@@ -84,8 +84,8 @@ void SelectMoveAction::Render(SDL_Surface *screen) {
 
 void SelectMoveAction::RenderMenu(SDL_Surface *screen, const Vector<int> &offset) {
        Point<int> position(
-                       (battle->BackgroundWidth() - battle->GetMoveMenu().Width()) / 2,
-                       battle->BackgroundHeight() - battle->GetMoveMenu().Height() - battle->GetMoveMenu().Height() / 2);
+                       (battle->Width() - battle->GetMoveMenu().Width()) / 2,
+                       battle->Height() - battle->GetMoveMenu().Height() - battle->GetMoveMenu().Height() / 2);
        battle->GetMoveMenu().Render(screen, position + offset);
 }