summaryrefslogtreecommitdiff
path: root/src/being/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-12 14:23:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-12 14:23:46 +0300
commite06ebbc33fae83c4817a39af15fa0784ac233459 (patch)
tree0a3994053f79e53dd3ed0b9507af747638c99548 /src/being/being.h
parentdbf80cecba66c3171ccebb6c22d85c3b52637882 (diff)
downloadplus-e06ebbc33fae83c4817a39af15fa0784ac233459.tar.gz
plus-e06ebbc33fae83c4817a39af15fa0784ac233459.tar.bz2
plus-e06ebbc33fae83c4817a39af15fa0784ac233459.tar.xz
plus-e06ebbc33fae83c4817a39af15fa0784ac233459.zip
fix using same pet from different items at same time.
Diffstat (limited to 'src/being/being.h')
-rw-r--r--src/being/being.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/being/being.h b/src/being/being.h
index a93d0e3db..56319c352 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -924,6 +924,12 @@ class Being : public ActorSprite, public ConfigListener
void recreateItemParticles();
+ void incUsage()
+ { mUsageCounter ++; }
+
+ int decUsage()
+ { return --mUsageCounter; }
+
protected:
/**
* Updates name's location.
@@ -1084,6 +1090,7 @@ class Being : public ActorSprite, public ConfigListener
unsigned int mNumber;
int mPetId;
int mLook;
+ int mUsageCounter;
unsigned char mHairColor;
bool mErased;
bool mEnemy;