]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/SelectIkari.cpp
put hero into a variable when applying damage for debugging purposes
[l2e.git] / src / battle / states / SelectIkari.cpp
index 97a951d7c82fea11a5f12d3e2eb4d99847127a1e..7ccfdc481aefa411c44339c7da9bb5d3fe0f2c80 100644 (file)
@@ -111,7 +111,7 @@ void SelectIkari::Render(SDL_Surface *screen) {
 void SelectIkari::RenderFrame(SDL_Surface *screen, const Vector<int> &offset) {
        const Frame *frame(battle->Res().selectFrame);
        Point<int> position(frame->BorderWidth(), frame->BorderHeight());
-       int width(battle->BackgroundWidth() - 2 * frame->BorderWidth());
+       int width(battle->Width() - 2 * frame->BorderWidth());
        int height(battle->Res().normalFont->CharHeight() * 13);
        frame->Draw(screen, position + offset, width, height);
 }