diff options
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/player.h b/src/player.h index d769acdad..cc1357010 100644 --- a/src/player.h +++ b/src/player.h @@ -134,13 +134,14 @@ public: std::vector<CollisionInfo> *collision_info) {} - const v3f &getSpeed() const + v3f getSpeed() const { return m_speed; } - void setSpeed(const v3f &speed) + void setSpeed(v3f speed) { + clampToF1000(speed); m_speed = speed; } |