small fixes: crack texture, server build on windows, configuration file example,...
authorPerttu Ahola <celeron55@gmail.com>
Wed, 16 Feb 2011 18:03:31 +0000 (20:03 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Wed, 16 Feb 2011 18:03:31 +0000 (20:03 +0200)
CMakeLists.txt
data/crack.png
minetest.conf.example
src/CMakeLists.txt
src/map.cpp

index a0f248d13b9db22defa37c6d27e1372ae1881bc5..da820dcc190b8283407aaa621ef647cf3336475b 100644 (file)
@@ -45,15 +45,18 @@ if(WIN32)
        set(DATADIR "data")
        set(BINDIR "bin")
        set(DOCDIR "doc")
+       set(EXAMPLE_CONF_DIR ".")
 elseif(APPLE)
        # random placeholders
        set(DATADIR "share/minetest")
        set(BINDIR "bin")
        set(DOCDIR "share/doc/minetest")
-elseif(UNIX)
+       set(EXAMPLE_CONF_DIR ".")
+elseif(UNIX) # Linux, BSD etc
        set(DATADIR "usr/share/minetest")
        set(BINDIR "usr/bin")
        set(DOCDIR "usr/share/doc/minetest")
+       set(EXAMPLE_CONF_DIR "usr/share/doc/minetest")
 endif()
 
 install(FILES "doc/README.txt" DESTINATION "${DOCDIR}")
index 0fef2a6fddd13c5d5c851ce38943703ff51e89bd..499783982d553bfecbc596175b492dd0f2346a32 100644 (file)
Binary files a/data/crack.png and b/data/crack.png differ
index 24865da7d8e10371bffa10661366e5a03681e5f7..edf43e889c4139f3614f231ea9c91383cca0f290 100644 (file)
@@ -33,8 +33,6 @@
 
 #map-dir = /home/palle/custom_map
 
-#operator_name = 
-
 #plants_amount = 1.0
 #ravines_amount = 1.0
 #coal_amount = 1.0
index 1c684b0feaf369c47eab8b0a151f413133261aba..c0301cc80cf7c463f151cc891e200be47e35aae8 100644 (file)
@@ -151,7 +151,7 @@ if(MSVC)
        
        if(BUILD_SERVER)
                set_target_properties(minetestserver PROPERTIES
-                               COMPILE_DEFINITIONS "/D SERVER")
+                               COMPILE_DEFINITIONS "SERVER")
        endif(BUILD_SERVER)
 
 else()
@@ -184,6 +184,9 @@ endif()
 # Installation
 #
 
+# Example configuration file
+install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../minetest.conf.example" DESTINATION ${EXAMPLE_CONF_DIR})
+
 if(BUILD_CLIENT)
        install(TARGETS minetest DESTINATION ${BINDIR})
 
index 09cab79e25598197dd28daafa157fe80a2239504..ca2cdbc39d216be2f1208b7934e6367d1f392c77 100644 (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);