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:
parent
a4048e4e2e
commit
bb1c711586
2 changed files with 28 additions and 69 deletions
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue