summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorsamoatesgames <sam@samoatesgames.com>2015-11-13 16:08:16 +0100
committersamoatesgames <sam@samoatesgames.com>2015-11-13 16:08:16 +0100
commit19ea5d5423a04e91576f8f5772aebedbff6292cb (patch)
tree4b44cc6d77959a96171dcea931d3141fa1320f5a /src/World.h
parentMerge pull request #2641 from cuberite/worktycho-patch-1 (diff)
downloadcuberite-19ea5d5423a04e91576f8f5772aebedbff6292cb.tar
cuberite-19ea5d5423a04e91576f8f5772aebedbff6292cb.tar.gz
cuberite-19ea5d5423a04e91576f8f5772aebedbff6292cb.tar.bz2
cuberite-19ea5d5423a04e91576f8f5772aebedbff6292cb.tar.lz
cuberite-19ea5d5423a04e91576f8f5772aebedbff6292cb.tar.xz
cuberite-19ea5d5423a04e91576f8f5772aebedbff6292cb.tar.zst
cuberite-19ea5d5423a04e91576f8f5772aebedbff6292cb.zip
Diffstat (limited to '')
-rw-r--r--src/World.h6
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);