diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-25 02:06:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-25 02:10:11 +0300 |
commit | 219424dc0e194a722bc93ba51b973fda8715869f (patch) | |
tree | be1586057d67bb329edad911a386d4945cba4882 /src/being/being.h | |
parent | 2d4c4cb494842daa6b3865bc2729782098e367d8 (diff) | |
download | manaplus-219424dc0e194a722bc93ba51b973fda8715869f.tar.gz manaplus-219424dc0e194a722bc93ba51b973fda8715869f.tar.bz2 manaplus-219424dc0e194a722bc93ba51b973fda8715869f.tar.xz manaplus-219424dc0e194a722bc93ba51b973fda8715869f.zip |
add pet spawn offset in tiles from owner position.
New pet db attributes: offsetX, offsetY
Offset counted from player direction.
Diffstat (limited to 'src/being/being.h')
-rw-r--r-- | src/being/being.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/being/being.h b/src/being/being.h index 6722e5d4c..e8bc7da37 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -881,6 +881,8 @@ class Being : public ActorSprite, public ConfigListener void updatePets(); + void fixPetSpawnPos(int &dstX, int &dstY) const; + Being *getPet() { return mPet; } |