diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-05 21:31:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-05 21:31:10 +0300 |
commit | ac01c186d37b14da92314ff44b4e043b0c0ee31b (patch) | |
tree | d91ef52c51c44d14f85dc2ea6258ae8af612fb2f /src/being/being.h | |
parent | 9ac1ca5aa120263a1d19735eef6c9614306e45e0 (diff) | |
download | ManaVerse-ac01c186d37b14da92314ff44b4e043b0c0ee31b.tar.gz ManaVerse-ac01c186d37b14da92314ff44b4e043b0c0ee31b.tar.bz2 ManaVerse-ac01c186d37b14da92314ff44b4e043b0c0ee31b.tar.xz ManaVerse-ac01c186d37b14da92314ff44b4e043b0c0ee31b.zip |
add support for additinional diagonal moving speed.
Diffstat (limited to 'src/being/being.h')
-rw-r--r-- | src/being/being.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/being/being.h b/src/being/being.h index b08cba443..e373ec5e3 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -476,7 +476,7 @@ class Being : public ActorSprite, public ConfigListener * in tiles per second for Manaserv. */ void setWalkSpeed(const Vector &speed) - { mWalkSpeed = speed; } + { mWalkSpeed = speed; mSpeed = speed.x; } /** * Gets the walk speed. @@ -1000,6 +1000,7 @@ class Being : public ActorSprite, public ConfigListener * @see MILLISECONDS_IN_A_TICK */ Vector mWalkSpeed; + float mSpeed; std::string mIp; int *mSpriteRemap; int *mSpriteHide; |