summaryrefslogtreecommitdiff
path: root/src/serverobject.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-08-11 09:57:27 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-08-11 09:57:27 +0200
commitbb1c71158613c1f17c57e53ad489b076a11e3828 (patch)
treed8dccb0a87b3deb962cf4b06abec21aa93d04115 /src/serverobject.h
parenta4048e4e2e6d3c9177270437687118b93c33bf77 (diff)
downloadminetest-bb1c71158613c1f17c57e53ad489b076a11e3828.tar.gz
minetest-bb1c71158613c1f17c57e53ad489b076a11e3828.tar.bz2
minetest-bb1c71158613c1f17c57e53ad489b076a11e3828.zip
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
Diffstat (limited to 'src/serverobject.h')
-rw-r--r--src/serverobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serverobject.h b/src/serverobject.h
index cd1922c87..8acbd6a19 100644
--- a/src/serverobject.h
+++ b/src/serverobject.h
@@ -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; }