]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/SelectSpell.cpp
added struct for battle resources
[l2e.git] / src / battle / states / SelectSpell.cpp
index 66b55f16d9dfe785a6c60ae5d54af51aaa7d0ed7..1b012503551b23b73d386ae5eb81b8a49f6baeec 100644 (file)
@@ -63,13 +63,13 @@ void SelectSpell::UpdateWorld(float deltaT) {
 
 void SelectSpell::Render(SDL_Surface *screen) {
        parent->Render(screen);
-       const Frame &frame(battle->GetSelectFrame());
-       Point<int> position(frame.BorderWidth(), frame.BorderHeight());
+       const Frame *frame(battle->Res().selectFrame);
+       Point<int> position(frame->BorderWidth(), frame->BorderHeight());
        Vector<int> offset(battle->CalculateScreenOffset(screen));
-       int width(battle->BackgroundWidth() - 2 * frame.BorderWidth());
+       int width(battle->BackgroundWidth() - 2 * frame->BorderWidth());
        // TODO: replace with font height
-       int height(frame.BorderHeight() * 13);
-       frame.Draw(screen, position + offset, width, height);
+       int height(frame->BorderHeight() * 13);
+       frame->Draw(screen, position + offset, width, height);
 }
 
 }