summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-05 19:43:25 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-05 19:43:25 +0300
commit4eaba0d76656965c20ee4b6bbb8a5873daabc296 (patch)
tree184c79791fa1b68cc44ff992ef689a6ca3a3ca52 /src
parent6c5e393bfa05f3cc42609b91d549e45c55220a6e (diff)
downloadmv-4eaba0d76656965c20ee4b6bbb8a5873daabc296.tar.gz
mv-4eaba0d76656965c20ee4b6bbb8a5873daabc296.tar.bz2
mv-4eaba0d76656965c20ee4b6bbb8a5873daabc296.tar.xz
mv-4eaba0d76656965c20ee4b6bbb8a5873daabc296.zip
Replace in Being getter getDirection to mDirection.
Diffstat (limited to 'src')
-rw-r--r--src/being/being.cpp6
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;