X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectAttackType.cpp;h=fbd43336769f1c3d570c3e867d948b1340accc3c;hb=2a1d9169e1f6c2dfe0f93ed40d5fb68d3da342af;hp=7f366818143ad48c29beeb70ea966b7e85fe085c;hpb=6db6d2adbc3e36b385d6c508e416060afa44dd7a;p=l2e.git diff --git a/src/battle/states/SelectAttackType.cpp b/src/battle/states/SelectAttackType.cpp index 7f36681..fbd4333 100644 --- a/src/battle/states/SelectAttackType.cpp +++ b/src/battle/states/SelectAttackType.cpp @@ -17,14 +17,12 @@ #include "../../app/Application.h" #include "../../app/Input.h" #include "../../common/Item.h" -#include "../../geometry/operators.h" #include using app::Application; using app::Input; using common::Item; -using geometry::Point; using geometry::Vector; namespace battle { @@ -136,7 +134,7 @@ void SelectAttackType::Render(SDL_Surface *screen) { } void SelectAttackType::RenderMenu(SDL_Surface *screen, const Vector &offset) { - Point position( + Vector position( (battle->Width() - battle->GetAttackTypeMenu().Width()) / 2, battle->Height() - battle->GetAttackTypeMenu().Height() - battle->GetAttackTypeMenu().Height() / 2); battle->GetAttackTypeMenu().Render(screen, position + offset);