diff --git a/C++ProjectTemplate b/C++ProjectTemplate index b8b5986..39b5cf2 100755 Binary files a/C++ProjectTemplate and b/C++ProjectTemplate differ diff --git a/main.cpp b/main.cpp index 50a898c..3d48e32 100644 --- a/main.cpp +++ b/main.cpp @@ -1969,7 +1969,7 @@ void SeasonI::keyUpdates() { goto next; } } //Make sure it's not a party member. - dist = abs(PARTY_MEMBER_OBJ[0]->GetPos().x-OBJECTS[i]->GetPos().x)+abs(PARTY_MEMBER_OBJ[0]->GetPos().y-OBJECTS[i]->GetPos().y); + dist = std::abs(PARTY_MEMBER_OBJ[0]->GetPosWithOrigin().x-OBJECTS[i]->GetPosWithOrigin().x)+std::abs(PARTY_MEMBER_OBJ[0]->GetPosWithOrigin().y-OBJECTS[i]->GetPosWithOrigin().y); if (dist0) { + + if (move.x!=0) { for (int i=0;i0) { + if (move.y!=0) { for (int i=0;i