Quick fix to avoid spawning underground bug

master
ValkaTR 2011-11-13 16:09:04 +02:00
parent 38581e93be
commit 843010e1ab
2 changed files with 5 additions and 5 deletions

View File

@ -783,14 +783,14 @@ void the_game(
// Update client and server
client.step(0.1);
client.step(0.0001);
if(server != NULL)
server->step(0.1);
server->step(0.0001);
// Delay a bit
sleep_ms(100);
time_counter += 0.1;
sleep_ms(1);
time_counter += 0.0001;
}
}
catch(con::PeerNotFoundException &e)

View File

@ -4156,7 +4156,7 @@ v3f findSpawnPos(ServerMap &map)
// Get sector (NOTE: Don't get because it's slow)
//m_env.getMap().emergeSector(sectorpos);
// Get ground height at point (fallbacks to heightmap function)
groundheight = map.findGroundLevel(nodepos);
groundheight = map.findGroundLevel(nodepos) + 1;
// Don't go underwater
if(groundheight < WATER_LEVEL)
{