]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/HeroTag.cpp
removed stupid file headers that eclipse put in
[l2e.git] / src / battle / HeroTag.cpp
index 7938250910aa284a2f2f9946c9f685be5914088c..7c8769af048986f2d7f8dcd57ee0cc8415c85cb7 100644 (file)
@@ -1,10 +1,3 @@
-/*
- * HeroTag.cpp
- *
- *  Created on: Aug 6, 2012
- *      Author: holy
- */
-
 #include "HeroTag.h"
 
 #include "AttackChoice.h"
@@ -26,12 +19,12 @@ const graphics::Sprite *HeroTag::HeroSprite() const {
        return battle->HeroAt(index).Sprite();
 }
 
-void HeroTag::Render(SDL_Surface *screen, int width, int height, Vector<int> position, bool active) const {
+void HeroTag::Render(SDL_Surface *screen, int width, int height, const Vector<int> &position, bool active) const {
        const Resources &r(battle->Res());
 
        // frame
        const Frame *frame(active ? r.activeHeroTagFrame : r.heroTagFrame);
-       Vector<int> frameOffset(frame->BorderWidth(), frame->BorderHeight());
+       Vector<int> frameOffset(frame->BorderSize());
        Vector<int> alignOffset((index % 2) ? 4 * r.heroTagFont->CharWidth() : 0, 0);
        frame->Draw(screen, position, width, height);