1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

small fixes: crack texture, server build on windows, configuration file example, adding config file example to install

This commit is contained in:
Perttu Ahola 2011-02-16 20:03:31 +02:00
parent e06751aea0
commit 92432a28c0
5 changed files with 17 additions and 27 deletions

View file

@ -4522,6 +4522,15 @@ MapBlock * ServerMap::emergeBlock(
<<"You could try to delete it."<<std::endl;
throw e;
}
catch(VersionMismatchException &e)
{
dstream<<"emergeBlock: emergeSector() failed: "
<<e.what()<<std::endl;
dstream<<"Path to failed sector: "<<getSectorDir(p2d)
<<std::endl
<<"You could try to delete it."<<std::endl;
throw e;
}
/*
NOTE: This should not be done, or at least the exception
should not be passed on as std::exception, because it
@ -5088,29 +5097,6 @@ bool ServerMap::loadSectorFull(v2s16 p2d)
return true;
}
#if 0
bool ServerMap::deFlushSector(v2s16 p2d)
{
DSTACK(__FUNCTION_NAME);
// See if it already exists in memory
try{
MapSector *sector = getSectorNoGenerate(p2d);
return true;
}
catch(InvalidPositionException &e)
{
/*
Try to load the sector from disk.
*/
if(loadSectorFull(p2d) == true)
{
return true;
}
}
return false;
}
#endif
void ServerMap::saveBlock(MapBlock *block)
{
DSTACK(__FUNCTION_NAME);