From 92432a28c00699e233cac46aa93d140994d25b14 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 16 Feb 2011 20:03:31 +0200 Subject: small fixes: crack texture, server build on windows, configuration file example, adding config file example to install --- src/CMakeLists.txt | 5 ++++- src/map.cpp | 32 +++++++++----------------------- 2 files changed, 13 insertions(+), 24 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1c684b0fe..c0301cc80 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 09cab79e2..ca2cdbc39 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -4522,6 +4522,15 @@ MapBlock * ServerMap::emergeBlock( <<"You could try to delete it."<