diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-19 15:44:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-19 15:44:14 +0300 |
commit | 3420babbbc6d10f1fc5be7ff7b895e618acd5f0e (patch) | |
tree | 92dc07613db98c4bd56f28aa8faffb99e0bde88f /src/being/actorsprite.h | |
parent | cf6a135902b647b565e782e9cb9626b7ac8b361b (diff) | |
download | manaplus-3420babbbc6d10f1fc5be7ff7b895e618acd5f0e.tar.gz manaplus-3420babbbc6d10f1fc5be7ff7b895e618acd5f0e.tar.bz2 manaplus-3420babbbc6d10f1fc5be7ff7b895e618acd5f0e.tar.xz manaplus-3420babbbc6d10f1fc5be7ff7b895e618acd5f0e.zip |
Allow support for different horses riding.
Diffstat (limited to 'src/being/actorsprite.h')
-rw-r--r-- | src/being/actorsprite.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/actorsprite.h b/src/being/actorsprite.h index 93fddedce..d5cb16613 100644 --- a/src/being/actorsprite.h +++ b/src/being/actorsprite.h @@ -177,7 +177,7 @@ class ActorSprite notfinal : public CompoundSprite, public Actor { return mHaveCart; } virtual void setRiding(const bool b) - { mRiding = b; } + { mHorseId = b ? 1 : 0; } protected: /** @@ -226,6 +226,7 @@ class ActorSprite notfinal : public CompoundSprite, public Actor ParticleList mStunParticleEffects; ParticleVector mStatusParticleEffects; ParticleList mChildParticleEffects; + int mHorseId; BeingId mId; uint16_t mStunMode; /**< Stun mode; zero if not stunned */ @@ -243,7 +244,6 @@ class ActorSprite notfinal : public CompoundSprite, public Actor bool mMustResetParticles; bool mPoison; bool mHaveCart; - bool mRiding; }; #endif // BEING_ACTORSPRITE_H |