diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-05 18:59:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-05 18:59:53 +0300 |
commit | b19a1c6d50c2c0f4233972f20c9354efca5ccb66 (patch) | |
tree | 34e2c6c432e732fa75226c1195ecc229bd3a7711 /src/being/being.h | |
parent | 1c34872aea8d196708aec8277017b467d01d09b0 (diff) | |
download | manaplus-b19a1c6d50c2c0f4233972f20c9354efca5ccb66.tar.gz manaplus-b19a1c6d50c2c0f4233972f20c9354efca5ccb66.tar.bz2 manaplus-b19a1c6d50c2c0f4233972f20c9354efca5ccb66.tar.xz manaplus-b19a1c6d50c2c0f4233972f20c9354efca5ccb66.zip |
Change calculated speed in being from float to int.
Diffstat (limited to 'src/being/being.h')
-rw-r--r-- | src/being/being.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/being.h b/src/being/being.h index c9bb2eca7..ce1b27ebd 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -405,7 +405,7 @@ class Being notfinal : public ActorSprite, * Sets the walk speed in pixels per second. */ void setWalkSpeed(const int speed) restrict2 - { mWalkSpeed = speed; mSpeed = static_cast<float>(speed); } + { mWalkSpeed = speed; mSpeed = speed; } /** * Gets the walk speed in pixels per second. @@ -1097,7 +1097,7 @@ class Being notfinal : public ActorSprite, * @see MILLISECONDS_IN_A_TICK */ int mWalkSpeed; - float mSpeed; + int mSpeed; std::string mIp; int *restrict mSpriteRemap A_NONNULLPOINTER; int *restrict mSpriteHide A_NONNULLPOINTER; |