summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-01 22:40:50 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-01 22:40:50 +0100
commite26dc5cc0aaeb81ee7c6419ea91f8eef7d072ef3 (patch)
tree585d1f17bd9c63e16feae57ca7eef31d322d14cf /src/World.cpp
parentSplit cCoord template into one and two data types (diff)
downloadcuberite-e26dc5cc0aaeb81ee7c6419ea91f8eef7d072ef3.tar
cuberite-e26dc5cc0aaeb81ee7c6419ea91f8eef7d072ef3.tar.gz
cuberite-e26dc5cc0aaeb81ee7c6419ea91f8eef7d072ef3.tar.bz2
cuberite-e26dc5cc0aaeb81ee7c6419ea91f8eef7d072ef3.tar.lz
cuberite-e26dc5cc0aaeb81ee7c6419ea91f8eef7d072ef3.tar.xz
cuberite-e26dc5cc0aaeb81ee7c6419ea91f8eef7d072ef3.tar.zst
cuberite-e26dc5cc0aaeb81ee7c6419ea91f8eef7d072ef3.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp
index f2981bf84..2571a6782 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -635,7 +635,7 @@ void cWorld::GenerateRandomSpawn(void)
{
LOGD("Generating random spawnpoint...");
- while (IsBlockWater(GetBlock((int)m_SpawnX, GetHeight((int)m_SpawnX, (int)m_SpawnZ), (int)m_SpawnZ)))
+ while (IsBlockWater(GetBlock((int)m_SpawnX, GetHeight((int)m_SpawnX, (int)m_SpawnZ), (int)m_SpawnZ), true))
{
if ((GetTickRandomNumber(4) % 2) == 0) // Randomise whether to increment X or Z coords
{