diff options
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 6d1307fab..5b1e49a8c 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -3056,3 +3056,18 @@ void Being::setLook(const int look) if (mType == PLAYER) setSubtype(mSubType, look); } + +void Being::setTileCoords(const int x, const int y) +{ + mX = x; + mY = y; + if (mMap) + mOffsetY = mMap->getHeightOffset(mX, mY); +} + +void Being::setMap(Map *const map) +{ + Actor::setMap(map); + if (mMap) + mOffsetY = mMap->getHeightOffset(mX, mY); +} |