mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Player::getSpeed/setSpeed use const refs
This commit is contained in:
parent
ab9f3b92f2
commit
3eb9ff555f
3 changed files with 4 additions and 4 deletions
|
@ -104,12 +104,12 @@ public:
|
|||
std::vector<CollisionInfo> *collision_info)
|
||||
{}
|
||||
|
||||
v3f getSpeed()
|
||||
const v3f &getSpeed() const
|
||||
{
|
||||
return m_speed;
|
||||
}
|
||||
|
||||
void setSpeed(v3f speed)
|
||||
void setSpeed(const v3f &speed)
|
||||
{
|
||||
m_speed = speed;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue