1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

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 paramat
parent 88a7160ad8
commit 359a940dde
6 changed files with 5 additions and 48 deletions

View file

@ -139,14 +139,10 @@ struct MapgenParams {
virtual void readParams(const Settings *settings);
virtual void writeParams(Settings *settings) const;
bool saoPosOverLimit(const v3f &p);
s32 getSpawnRangeMax();
private:
void calcMapgenEdges();
float m_sao_limit_min = -MAX_MAP_GENERATION_LIMIT * BS;
float m_sao_limit_max = MAX_MAP_GENERATION_LIMIT * BS;
bool m_mapgen_edges_calculated = false;
};