diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-05 18:33:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-05 18:33:57 +0300 |
commit | 1c34872aea8d196708aec8277017b467d01d09b0 (patch) | |
tree | dd14d98c40666797d1c5c14f39a5f117d17d791c /src/being/being.h | |
parent | 3fae3f59aad1f1f2eee1e1bfa088672787bc9c78 (diff) | |
download | mv-1c34872aea8d196708aec8277017b467d01d09b0.tar.gz mv-1c34872aea8d196708aec8277017b467d01d09b0.tar.bz2 mv-1c34872aea8d196708aec8277017b467d01d09b0.tar.xz mv-1c34872aea8d196708aec8277017b467d01d09b0.zip |
Replace in Being speed field from vector to int.
Diffstat (limited to 'src/being/being.h')
-rw-r--r-- | src/being/being.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being/being.h b/src/being/being.h index 1fd7aa0ba..c9bb2eca7 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -404,13 +404,13 @@ class Being notfinal : public ActorSprite, /** * Sets the walk speed in pixels per second. */ - void setWalkSpeed(const Vector &restrict speed) restrict2 - { mWalkSpeed = speed; mSpeed = speed.x; } + void setWalkSpeed(const int speed) restrict2 + { mWalkSpeed = speed; mSpeed = static_cast<float>(speed); } /** * Gets the walk speed in pixels per second. */ - Vector getWalkSpeed() const restrict2 noexcept A_WARN_UNUSED + int getWalkSpeed() const restrict2 noexcept A_WARN_UNUSED { return mWalkSpeed; } /** @@ -1096,7 +1096,7 @@ class Being notfinal : public ActorSprite, * In pixels per second. * @see MILLISECONDS_IN_A_TICK */ - Vector mWalkSpeed; + int mWalkSpeed; float mSpeed; std::string mIp; int *restrict mSpriteRemap A_NONNULLPOINTER; |