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:
parent
88a7160ad8
commit
359a940dde
6 changed files with 5 additions and 48 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue