From: Daniel Karbach Date: Wed, 8 Aug 2012 12:12:31 +0000 (+0200) Subject: changed party layout position interpretation to better reflect the original game X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=d1df71f636f14fe2cb5b44b173e3d30bdc73521e;p=l2e.git changed party layout position interpretation to better reflect the original game --- diff --git a/src/battle/PartyLayout.h b/src/battle/PartyLayout.h index df247f3..d16f2bd 100644 --- a/src/battle/PartyLayout.h +++ b/src/battle/PartyLayout.h @@ -28,8 +28,8 @@ public: 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() * width / 256, - i->Y() * height / 256 + i->X() * width / 255, + i->Y() * height / 223 )); } } diff --git a/src/main.cpp b/src/main.cpp index ab02016..c3d73cb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -55,10 +55,10 @@ int main(int argc, char **argv) { // temporary test data SDL_Surface *bg(IMG_Load("test-data/battle-bg.png")); PartyLayout monstersLayout; - monstersLayout.AddPosition(Point(104, 109)); - monstersLayout.AddPosition(Point(140, 118)); - monstersLayout.AddPosition(Point(176, 109)); - monstersLayout.AddPosition(Point(212, 118)); + monstersLayout.AddPosition(Point(88, 104)); + monstersLayout.AddPosition(Point(128, 104)); + monstersLayout.AddPosition(Point(168, 104)); + monstersLayout.AddPosition(Point(208, 104)); PartyLayout heroesLayout; heroesLayout.AddPosition(Point(27, 219)); heroesLayout.AddPosition(Point(104, 227));