mirror of
https://github.com/minetest/minetest.git
synced 2025-07-01 15:40:23 +02:00
Lots of small stuff
This commit is contained in:
@ -135,7 +135,9 @@ endif(BUILD_SERVER)
|
||||
if( UNIX )
|
||||
# Unix
|
||||
|
||||
set(UNIX_FLAGS "-Wall")
|
||||
# NOTE: -Wall gets applied automatically to debug builds
|
||||
|
||||
#set(UNIX_FLAGS "")
|
||||
|
||||
if(BUILD_CLIENT)
|
||||
set_target_properties(minetest PROPERTIES COMPILE_FLAGS
|
||||
|
@ -4,7 +4,8 @@
|
||||
#define CONFIG_H
|
||||
|
||||
#define INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
|
||||
#define BUILD_INFO "BUILD_DATE=@BUILD_DATE@ RUN_IN_PLACE=@RUN_IN_PLACE@ INSTALL_PREFIX=@CMAKE_INSTALL_PREFIX@"
|
||||
#define VERSION_STRING "@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@"
|
||||
#define BUILD_INFO "VER="VERSION_STRING" BUILD_DATE=@BUILD_DATE@ RUN_IN_PLACE=@RUN_IN_PLACE@ INSTALL_PREFIX=@CMAKE_INSTALL_PREFIX@"
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -76,7 +76,7 @@ public:
|
||||
if(g_debugstreams[i] == stderr && m_disable_stderr)
|
||||
continue;
|
||||
if(g_debugstreams[i] != NULL)
|
||||
fwrite(&c, 1, 1, g_debugstreams[i]);
|
||||
(void)fwrite(&c, 1, 1, g_debugstreams[i]);
|
||||
//TODO: Is this slow?
|
||||
fflush(g_debugstreams[i]);
|
||||
}
|
||||
@ -90,7 +90,7 @@ public:
|
||||
if(g_debugstreams[i] == stderr && m_disable_stderr)
|
||||
continue;
|
||||
if(g_debugstreams[i] != NULL)
|
||||
fwrite(s, 1, n, g_debugstreams[i]);
|
||||
(void)fwrite(s, 1, n, g_debugstreams[i]);
|
||||
//TODO: Is this slow?
|
||||
fflush(g_debugstreams[i]);
|
||||
}
|
||||
|
@ -1804,7 +1804,7 @@ continue_generating:
|
||||
/*
|
||||
Don't always generate dungeon
|
||||
*/
|
||||
if(found_existing || rand() % 3 == 0)
|
||||
if(found_existing || rand() % 2 == 0)
|
||||
{
|
||||
/*
|
||||
Generate some tunnel starting from orp and ors
|
||||
|
Reference in New Issue
Block a user