aboutsummaryrefslogtreecommitdiff
path: root/src/environment.cpp
diff options
context:
space:
mode:
authorPavel Puchkin <i@neoascetic.me>2014-10-23 22:17:47 +0300
committerShadowNinja <shadowninja@minetest.net>2014-10-23 20:54:33 -0400
commit73bf791fe12d4214d29b6b872940ede634651ce8 (patch)
tree1c68478f2b5aec6257a44138e693e0ae6b36541a /src/environment.cpp
parent737cce5f2b8409ec7cc9b73b9cf4b6d572b54e63 (diff)
downloadminetest-73bf791fe12d4214d29b6b872940ede634651ce8.tar.gz
minetest-73bf791fe12d4214d29b6b872940ede634651ce8.tar.bz2
minetest-73bf791fe12d4214d29b6b872940ede634651ce8.zip
Remove remenants of mob code
Since minetest has no mobs within the core anymore, I suppose these settings and code should go. Any mod that uses `minetest.setting_getbool` will work with no problem since the default return value is `false`.
Diffstat (limited to 'src/environment.cpp')
-rw-r--r--src/environment.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/environment.cpp b/src/environment.cpp
index 8977ee673..64c998671 100644
--- a/src/environment.cpp
+++ b/src/environment.cpp
@@ -1225,11 +1225,6 @@ void ServerEnvironment::step(float dtime)
i != m_active_objects.end(); ++i)
{
ServerActiveObject* obj = i->second;
- // Remove non-peaceful mobs on peaceful mode
- if(g_settings->getBool("only_peaceful_mobs")){
- if(!obj->isPeaceful())
- obj->m_removed = true;
- }
// Don't step if is to be removed or stored statically
if(obj->m_removed || obj->m_pending_deactivation)
continue;