diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-05 19:43:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-05 19:43:25 +0300 |
commit | 4eaba0d76656965c20ee4b6bbb8a5873daabc296 (patch) | |
tree | 184c79791fa1b68cc44ff992ef689a6ca3a3ca52 /src/being | |
parent | 6c5e393bfa05f3cc42609b91d549e45c55220a6e (diff) | |
download | plus-4eaba0d76656965c20ee4b6bbb8a5873daabc296.tar.gz plus-4eaba0d76656965c20ee4b6bbb8a5873daabc296.tar.bz2 plus-4eaba0d76656965c20ee4b6bbb8a5873daabc296.tar.xz plus-4eaba0d76656965c20ee4b6bbb8a5873daabc296.zip |
Replace in Being getter getDirection to mDirection.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 6 |
1 files 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; |