SAO limits: Allow SAOs to exist outside the set 'mapgen limit'

This commit is contained in:
paramat
2018-02-20 19:32:24 +00:00
committed by SmallJoker
parent c683e050d4
commit 8aaf526730
6 changed files with 5 additions and 50 deletions

View File

@@ -406,20 +406,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<ServerMap *>(&m_env->getMap());
assert(map);
if (!m_pending_deactivation &&
map->saoPositionOverLimit(m_base_position)) {
infostream << "Remove SAO " << m_id << "(" << m_init_name
<< "), outside of limits" << std::endl;
m_pending_deactivation = true;
m_pending_removal = true;
return;
}
}
if(send_recommended == false)
return;