1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

ServerEnvironment::step: modernize loops

Use various ranged-based for loops in ServerEnvironment::step
Also set ServerObject::getBasePosition const to be compliant
ServerEnvironment::deleteParticleSpawner: use a const iterator
This commit is contained in:
Loic Blot 2017-08-11 09:57:27 +02:00
parent a4048e4e2e
commit bb1c711586
No known key found for this signature in database
GPG key ID: EFAA458E8C153987
2 changed files with 28 additions and 69 deletions

View file

@ -78,7 +78,7 @@ public:
/*
Some simple getters/setters
*/
v3f getBasePosition(){ return m_base_position; }
v3f getBasePosition() const { return m_base_position; }
void setBasePosition(v3f pos){ m_base_position = pos; }
ServerEnvironment* getEnv(){ return m_env; }