diff options
author | worktycho <work.tycho@gmail.com> | 2015-11-15 15:34:50 +0100 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-11-15 15:34:50 +0100 |
commit | 09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f (patch) | |
tree | 2de7416a53cba29375d448f9cdc4eaf1114de59f /src/World.h | |
parent | Fixed typo in getting-started. (diff) | |
parent | Improved spawn location calculations. (diff) | |
download | cuberite-09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f.tar cuberite-09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f.tar.gz cuberite-09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f.tar.bz2 cuberite-09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f.tar.lz cuberite-09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f.tar.xz cuberite-09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f.tar.zst cuberite-09fe9ab6a96dfffebc0a76f6e7c2c2201b2a2a9f.zip |
Diffstat (limited to 'src/World.h')
-rw-r--r-- | src/World.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/World.h b/src/World.h index 30ac52763..512654ab8 100644 --- a/src/World.h +++ b/src/World.h @@ -1042,7 +1042,11 @@ private: void UpdateSkyDarkness(void); /** Generates a random spawnpoint on solid land by walking chunks and finding their biomes */ - void GenerateRandomSpawn(void); + void GenerateRandomSpawn(int a_MaxSpawnRadius); + + /** Can the specified coordinates be used as a spawn point? + Returns true if spawn position is valid and sets a_Y to the valid spawn height */ + bool CanSpawnAt(double a_X, double & a_Y, double a_Z); /** Check if player starting point is acceptable */ bool CheckPlayerSpawnPoint(int a_PosX, int a_PosY, int a_PosZ); |