summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-20 23:48:46 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-20 23:48:46 +0300
commit68581ace3255ea4d8b0f0e5b33a33633a27b8e42 (patch)
tree498fbea8f60078e71b60cfb2dfec012563ca7aad /src/being
parent7a618aa66e0b5b7df3bccd1bf1df908f1b421629 (diff)
downloadplus-68581ace3255ea4d8b0f0e5b33a33633a27b8e42.tar.gz
plus-68581ace3255ea4d8b0f0e5b33a33633a27b8e42.tar.bz2
plus-68581ace3255ea4d8b0f0e5b33a33633a27b8e42.tar.xz
plus-68581ace3255ea4d8b0f0e5b33a33633a27b8e42.zip
eathena: add packet SMSG_NPC_AREA 0x0b0b
Change protocol version to 5.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp1
-rw-r--r--src/being/being.h7
2 files changed, 8 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 03e13156c..2e64a9cd9 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -205,6 +205,7 @@ Being::Being(const int id,
mUsageCounter(1),
mKarma(0),
mManner(0),
+ mAreaSize(11),
mLook(0U),
mHairColor(0),
mErased(false),
diff --git a/src/being/being.h b/src/being/being.h
index e11f36003..361277f27 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -908,6 +908,12 @@ class Being notfinal : public ActorSprite,
void enablePetAi()
{ mPetAi = true; }
+ int getAreaSize() const
+ { return mAreaSize; }
+
+ void setAreaSize(const int areaSize)
+ { mAreaSize = areaSize; }
+
protected:
/**
* Updates name's location.
@@ -1076,6 +1082,7 @@ class Being notfinal : public ActorSprite,
int mUsageCounter;
int mKarma;
int mManner;
+ int mAreaSize;
uint16_t mLook;
unsigned char mHairColor;
bool mErased;