From 4eaba0d76656965c20ee4b6bbb8a5873daabc296 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 5 Mar 2016 19:43:25 +0300 Subject: Replace in Being getter getDirection to mDirection. --- src/being/being.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/being/being.cpp b/src/being/being.cpp index 227570b40..c7fe60b07 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -2018,7 +2018,7 @@ void Being::petLogic() restrict2 return; case 1: - newDir = mOwner->getDirection(); + newDir = mOwner->mDirection; break; case 2: @@ -2058,7 +2058,7 @@ void Being::petLogic() restrict2 break; } } - if (newDir && newDir != getDirection()) + if (newDir && newDir != mDirection) setDirection(newDir); } } @@ -3878,7 +3878,7 @@ void Being::fixPetSpawnPos(int &restrict dstX, int offsetX = offsetX1; int offsetY = offsetY1; - switch (mOwner->getDirection()) + switch (mOwner->mDirection) { case BeingDirection::LEFT: offsetX = -offsetY1; -- cgit v1.2.3-70-g09d2