summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-05 00:24:47 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-05 00:24:47 +0300
commit389fe31ace38a8f53c210ff5ae823eae1780dfc8 (patch)
tree3d66530794524c140a420e6f6c665c94e7d49162 /src/map.cpp
parent042834b09d8d2d814204244e3a64f5fb1cb7582c (diff)
downloadminetest-389fe31ace38a8f53c210ff5ae823eae1780dfc8.tar.gz
minetest-389fe31ace38a8f53c210ff5ae823eae1780dfc8.tar.bz2
minetest-389fe31ace38a8f53c210ff5ae823eae1780dfc8.zip
changed node metadata format to better accomodate future needs and problems
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/map.cpp b/src/map.cpp
index d644215be..f6115a62a 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -5192,14 +5192,14 @@ void ServerMap::loadBlock(std::string sectordir, std::string blockfile, MapSecto
{
DSTACK(__FUNCTION_NAME);
+ // Block file is map/sectors/xxxxxxxx/xxxx
+ std::string fullpath = m_savedir+"/sectors/"+sectordir+"/"+blockfile;
try{
- // Block file is map/sectors/xxxxxxxx/xxxx
- std::string fullpath = m_savedir+"/sectors/"+sectordir+"/"+blockfile;
std::ifstream is(fullpath.c_str(), std::ios_base::binary);
if(is.good() == false)
throw FileNotGoodException("Cannot open block file");
-
+
v3s16 p3d = getBlockPos(sectordir, blockfile);
v2s16 p2d(p3d.X, p3d.Z);
@@ -5264,6 +5264,8 @@ void ServerMap::loadBlock(std::string sectordir, std::string blockfile, MapSecto
"(SerializationError). Ignoring. "
"A new one will be generated."
<<std::endl;
+
+ // TODO: Backup file; name is in fullpath.
}
}