Added IsBlockWaterOrIce()
This commit is contained in:
@@ -633,7 +633,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), true))
|
||||
while (IsBlockWaterOrIce(GetBlock((int)m_SpawnX, GetHeight((int)m_SpawnX, (int)m_SpawnZ), (int)m_SpawnZ)))
|
||||
{
|
||||
if ((GetTickRandomNumber(4) % 2) == 0) // Randomise whether to increment X or Z coords
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user