diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-29 01:24:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-29 01:24:49 +0300 |
commit | ca130a19b36a78c6a23aa56c6ea82eaa187b0a06 (patch) | |
tree | a22f311c5698f3f4ee370c0f1d3cb05230a1da95 /src/being/being.h | |
parent | eeffaaf3ab0593f815e772bfb523b9e7a94d45f5 (diff) | |
download | plus-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.tar.gz plus-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.tar.bz2 plus-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.tar.xz plus-ca130a19b36a78c6a23aa56c6ea82eaa187b0a06.zip |
Use time_t for time values.
Diffstat (limited to 'src/being/being.h')
-rw-r--r-- | src/being/being.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/being/being.h b/src/being/being.h index 0b1bddcf4..78f0ec65c 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -66,7 +66,7 @@ struct HorseInfo; struct SkillInfo; struct ParticleInfo; -extern volatile int cur_time; +extern volatile time_t cur_time; struct NextSoundInfo final { @@ -705,19 +705,19 @@ class Being notfinal : public ActorSprite, void setOtherTime() restrict2 noexcept2 { mOtherTime = cur_time; } - int getMoveTime() const restrict2 noexcept2 + time_t getMoveTime() const restrict2 noexcept2 { return mMoveTime; } - int getAttackTime() const restrict2 noexcept2 + time_t getAttackTime() const restrict2 noexcept2 { return mAttackTime; } - int getTalkTime() const restrict2 noexcept2 + time_t getTalkTime() const restrict2 noexcept2 { return mTalkTime; } - int getTestTime() const restrict2 noexcept2 + time_t getTestTime() const restrict2 noexcept2 { return mTestTime; } - int getOtherTime() const restrict2 noexcept2 + time_t getOtherTime() const restrict2 noexcept2 { return mOtherTime; } void resetCounters() restrict2; @@ -1259,7 +1259,7 @@ class Being notfinal : public ActorSprite, ReachableT mReachable; int mGoodStatus; - static int mUpdateConfigTime; + static time_t mUpdateConfigTime; static unsigned int mConfLineLim; static int mSpeechType; static bool mHighlightMapPortals; @@ -1279,11 +1279,11 @@ class Being notfinal : public ActorSprite, static uint8_t mShowBadges; static int mAwayEffect; - int mMoveTime; - int mAttackTime; - int mTalkTime; - int mOtherTime; - int mTestTime; + time_t mMoveTime; + time_t mAttackTime; + time_t mTalkTime; + time_t mOtherTime; + time_t mTestTime; int mAttackDelay; int mMinHit; int mMaxHit; |