From: Perttu Ahola Date: Wed, 16 Feb 2011 18:03:31 +0000 (+0200) Subject: small fixes: crack texture, server build on windows, configuration file example,... X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=92432a28c00699e233cac46aa93d140994d25b14;p=zefram%2Fminetest%2Fminetest_engine.git small fixes: crack texture, server build on windows, configuration file example, adding config file example to install --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a0f248d1..da820dcc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}") diff --git a/data/crack.png b/data/crack.png index 0fef2a6f..49978398 100644 Binary files a/data/crack.png and b/data/crack.png differ diff --git a/minetest.conf.example b/minetest.conf.example index 24865da7..edf43e88 100644 --- a/minetest.conf.example +++ b/minetest.conf.example @@ -33,8 +33,6 @@ #map-dir = /home/palle/custom_map -#operator_name = - #plants_amount = 1.0 #ravines_amount = 1.0 #coal_amount = 1.0 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1c684b0f..c0301cc8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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}) diff --git a/src/map.cpp b/src/map.cpp index 09cab79e..ca2cdbc3 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -4522,6 +4522,15 @@ MapBlock * ServerMap::emergeBlock( <<"You could try to delete it."<