From 359a940dde0d0d85b288c8af6b10bccbd021f9c1 Mon Sep 17 00:00:00 2001 From: paramat Date: Tue, 20 Feb 2018 19:32:24 +0000 Subject: SAO limits: Allow SAOs to exist outside the set 'mapgen limit' --- src/content_sao.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/content_sao.cpp') diff --git a/src/content_sao.cpp b/src/content_sao.cpp index 247b6df0a..816f47b72 100644 --- a/src/content_sao.cpp +++ b/src/content_sao.cpp @@ -395,19 +395,6 @@ void LuaEntitySAO::step(float dtime, bool send_recommended) m_env->getScriptIface()->luaentity_Step(m_id, dtime); } - // Remove LuaEntity beyond terrain edges - { - ServerMap *map = dynamic_cast(&m_env->getMap()); - assert(map); - if (!m_pending_removal && - map->saoPositionOverLimit(m_base_position)) { - infostream << "Removing SAO " << m_id << "(" << m_init_name - << "), outside of limits" << std::endl; - m_pending_removal = true; - return; - } - } - if (!send_recommended) return; -- cgit v1.2.3