X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FPartyLayout.h;h=d16f2bdd6eb678212b60e1c098cdbdc3b2777f87;hb=8639675fbf1d232ab8188dd283149ab650e10336;hp=1456f15ae89f7cc435ac3ed03df950b41988ad8a;hpb=95bfa881f3fa427b67d9ce21e6a10f80f7be5439;p=l2e.git diff --git a/src/battle/PartyLayout.h b/src/battle/PartyLayout.h index 1456f15..d16f2bd 100644 --- a/src/battle/PartyLayout.h +++ b/src/battle/PartyLayout.h @@ -21,15 +21,15 @@ public: PartyLayout() { } public: - int NumPositions() const { return positions.size(); } + std::vector >::size_type NumPositions() const { return positions.size(); } template void CalculatePositions(U width, U height, std::vector > &dest) const { dest.clear(); dest.reserve(positions.size()); for (std::vector >::const_iterator i(positions.begin()), end(positions.end()); i != end; ++i) { dest.push_back(geometry::Point( - i->X() * 256 / width, - i->Y() * 256 / height + i->X() * width / 255, + i->Y() * height / 223 )); } }