summaryrefslogtreecommitdiff
path: root/src/being/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-05 18:59:53 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-05 18:59:53 +0300
commitb19a1c6d50c2c0f4233972f20c9354efca5ccb66 (patch)
tree34e2c6c432e732fa75226c1195ecc229bd3a7711 /src/being/being.h
parent1c34872aea8d196708aec8277017b467d01d09b0 (diff)
downloadplus-b19a1c6d50c2c0f4233972f20c9354efca5ccb66.tar.gz
plus-b19a1c6d50c2c0f4233972f20c9354efca5ccb66.tar.bz2
plus-b19a1c6d50c2c0f4233972f20c9354efca5ccb66.tar.xz
plus-b19a1c6d50c2c0f4233972f20c9354efca5ccb66.zip
Change calculated speed in being from float to int.
Diffstat (limited to 'src/being/being.h')
-rw-r--r--src/being/being.h4
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;