summaryrefslogtreecommitdiff
path: root/src/constants.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-12-19 16:51:45 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-12-19 16:51:45 +0200
commit0ca9423b8b2cf7bd1435fb09eba7a9f50d444864 (patch)
treeea49a7bae71b4e89f51797356fd0d34c35497e74 /src/constants.h
parent240499dc2c766c9d022e6df71e770a116a2c95de (diff)
downloadminetest-0ca9423b8b2cf7bd1435fb09eba7a9f50d444864.tar.gz
minetest-0ca9423b8b2cf7bd1435fb09eba7a9f50d444864.tar.bz2
minetest-0ca9423b8b2cf7bd1435fb09eba7a9f50d444864.zip
day/night working client side
Diffstat (limited to 'src/constants.h')
-rw-r--r--src/constants.h25
1 files changed, 9 insertions, 16 deletions
diff --git a/src/constants.h b/src/constants.h
index 83a070217..3c9b50eff 100644
--- a/src/constants.h
+++ b/src/constants.h
@@ -39,32 +39,29 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define PI 3.14159
-#define SERVERMAP_DELETE_UNUSED_SECTORS_TIMEOUT (60*10)
+//#define SERVERMAP_DELETE_UNUSED_SECTORS_TIMEOUT (60*10)
+#define SERVERMAP_DELETE_UNUSED_SECTORS_TIMEOUT (60)
#define SERVER_MAP_SAVE_INTERVAL (60)
/*#define SERVERMAP_DELETE_UNUSED_SECTORS_TIMEOUT (10)
#define SERVER_MAP_SAVE_INTERVAL (10)*/
+// This is the same as in minecraft and everything else
#define FOV_ANGLE (PI/2.5)
-//#define FOV_ANGLE (PI/2.25)
// The absolute working limit is (2^15 - viewing_range).
#define MAP_GENERATION_LIMIT (31000)
-//#define MAX_SIMULTANEOUS_BLOCK_SENDS 2
-
+// Time after building, during which the following limit
+// is in use
#define FULL_BLOCK_SEND_ENABLE_MIN_TIME_FROM_BUILDING 2.0
-//#define LIMITED_MAX_SIMULTANEOUS_BLOCK_SENDS 1
+// This many blocks are sent when player is building
#define LIMITED_MAX_SIMULTANEOUS_BLOCK_SENDS 0
-
-// Override for the previous one when distance is low
+// Override for the previous one when distance of block
+// is very low
#define BLOCK_SEND_DISABLE_LIMITS_MAX_D 1
-//#define MAX_SIMULTANEOUS_BLOCK_SENDS_SERVER_TOTAL 4
-
// Viewing range stuff
-//#define HEIGHTMAP_RANGE_NODES 300
-
//#define FREETIME_RATIO 0.2
#define FREETIME_RATIO 0.15
@@ -75,10 +72,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define SIGN_TEXT_MAX_LENGTH 50
-// The distance of how far objects will be sent to client
-//#define ACTIVE_OBJECT_D_BLOCKS 2
-
-// Wether to catch all std::exceptions.
+// Whether to catch all std::exceptions.
// Assert will be called on such an event.
#define CATCH_UNHANDLED_EXCEPTIONS 1
@@ -88,7 +82,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
*/
#define MAX_OBJECTDATA_SIZE 450
-//#define WATER_LEVEL (-5)
#define WATER_LEVEL (0)
#endif