From 3ac8cd5fa819210d36499d908607a82ae82cca0b Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 6 Aug 2012 12:11:10 +0200 Subject: [PATCH] fix position calculation in PartyLayout --- src/battle/PartyLayout.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/battle/PartyLayout.h b/src/battle/PartyLayout.h index 1456f15..df247f3 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 / 256, + i->Y() * height / 256 )); } } -- 2.39.2