summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-11 00:06:07 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-11 00:06:07 +0300
commitdc6966cb9d5f6b31ad7fb45d33aaa21192c3b89c (patch)
treed08d2d516816200e03983a88880d5e54d0311b5d /src/map.cpp
parent4934f3d060844aebff397837e5659902962902c2 (diff)
downloadminetest-dc6966cb9d5f6b31ad7fb45d33aaa21192c3b89c.tar.gz
minetest-dc6966cb9d5f6b31ad7fb45d33aaa21192c3b89c.tar.bz2
minetest-dc6966cb9d5f6b31ad7fb45d33aaa21192c3b89c.zip
added ignoring of map_meta.txt to better support old maps
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 7fe58dc11..5ab7e5b02 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1834,16 +1834,16 @@ ServerMap::ServerMap(std::string savedir):
}
else
{
- // Load map metadata (seed, chunksize)
- loadMapMeta();
-
try{
+ // Load map metadata (seed, chunksize)
+ loadMapMeta();
+
// Load chunk metadata
loadChunkMeta();
}
catch(FileNotGoodException &e){
dstream<<DTIME<<"WARNING: Server: Could not load "
- <<"chunk metafile. Disabling chunk-based "
+ <<"metafile(s). Disabling chunk-based "
<<"generation."<<std::endl;
m_chunksize = 0;
}
@@ -4967,7 +4967,7 @@ void ServerMap::loadMapMeta()
{
DSTACK(__FUNCTION_NAME);
- dstream<<"INFO: ServerMap::loadMapMeta(): Loading chunk metadata"
+ dstream<<"INFO: ServerMap::loadMapMeta(): Loading map metadata"
<<std::endl;
std::string fullpath = m_savedir + "/map_meta.txt";
@@ -4976,7 +4976,7 @@ void ServerMap::loadMapMeta()
{
dstream<<"ERROR: ServerMap::loadMapMeta(): "
<<"could not open"<<fullpath<<std::endl;
- throw FileNotGoodException("Cannot open chunk metadata");
+ throw FileNotGoodException("Cannot open map metadata");
}
Settings params;