aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWeblate <42@minetest.ru>2013-02-28 18:04:07 +0100
committerWeblate <42@minetest.ru>2013-02-28 18:04:07 +0100
commit066b0314b14b1c59e7d6c0d35345562e6a0c644c (patch)
treec2ec865f713198715ada98d8dc13b29efc4915a4 /src
parent22e186b4aa88b585e71500c4e9a03bf69b0b6191 (diff)
parent7caa28a6aa50aef43d9231662ad845a4aea27e88 (diff)
downloadminetest-066b0314b14b1c59e7d6c0d35345562e6a0c644c.tar.gz
minetest-066b0314b14b1c59e7d6c0d35345562e6a0c644c.tar.bz2
minetest-066b0314b14b1c59e7d6c0d35345562e6a0c644c.zip
Merge remote branch 'origin/master'
Diffstat (limited to 'src')
-rw-r--r--src/defaultsettings.cpp13
-rw-r--r--src/itemdef.cpp1
-rw-r--r--src/itemdef.h2
-rw-r--r--src/scriptapi.cpp10
4 files changed, 12 insertions, 14 deletions
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp
index 7afe8df05..a8954be72 100644
--- a/src/defaultsettings.cpp
+++ b/src/defaultsettings.cpp
@@ -94,7 +94,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("new_style_water", "false");
settings->setDefault("new_style_leaves", "true");
settings->setDefault("smooth_lighting", "true");
- settings->setDefault("enable_texture_atlas", "true");
+ settings->setDefault("enable_texture_atlas", "false");
settings->setDefault("texture_path", "");
settings->setDefault("shader_path", "");
settings->setDefault("video_driver", "opengl");
@@ -183,7 +183,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("congestion_control_max_rate", "400");
settings->setDefault("congestion_control_min_rate", "10");
settings->setDefault("remote_media", "");
- settings->setDefault("debug_log_level", "0");
+ settings->setDefault("debug_log_level", "2");
settings->setDefault("emergequeue_limit_total", "256");
settings->setDefault("emergequeue_limit_diskonly", "");
settings->setDefault("emergequeue_limit_generate", "");
@@ -203,14 +203,15 @@ void set_default_settings(Settings *settings)
settings->setDefault("movement_liquid_sink", "10");
settings->setDefault("movement_gravity", "9.81");
- //mapgen related things
- settings->setDefault("mg_name", "v6");
- settings->setDefault("water_level", "1");
+ //liquid stuff
settings->setDefault("liquid_finite", "false");
settings->setDefault("liquid_update", "1.0");
settings->setDefault("liquid_relax", "1");
settings->setDefault("liquid_fast_flood", "1");
-
+
+ //mapgen stuff
+ settings->setDefault("mg_name", "v6");
+ settings->setDefault("water_level", "1");
settings->setDefault("chunksize", "5");
settings->setDefault("mg_flags", "trees, caves, v6_biome_blend");
settings->setDefault("mgv6_freq_desert", "0.45");
diff --git a/src/itemdef.cpp b/src/itemdef.cpp
index c1ecf762f..5fd27fca3 100644
--- a/src/itemdef.cpp
+++ b/src/itemdef.cpp
@@ -100,7 +100,6 @@ void ItemDefinition::reset()
wield_scale = v3f(1.0, 1.0, 1.0);
stack_max = 99;
usable = false;
- rightclickable = false;
liquids_pointable = false;
if(tool_capabilities)
{
diff --git a/src/itemdef.h b/src/itemdef.h
index 4a9e16966..dd20ba353 100644
--- a/src/itemdef.h
+++ b/src/itemdef.h
@@ -62,8 +62,6 @@ struct ItemDefinition
*/
s16 stack_max;
bool usable;
- // If true, don't use node placement prediction
- bool rightclickable;
bool liquids_pointable;
// May be NULL. If non-NULL, deleted by destructor
ToolCapabilities *tool_capabilities;
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp
index 7fddcfc68..7aa148fd6 100644
--- a/src/scriptapi.cpp
+++ b/src/scriptapi.cpp
@@ -1063,10 +1063,6 @@ static ItemDefinition read_item_definition(lua_State *L, int index,
def.usable = lua_isfunction(L, -1);
lua_pop(L, 1);
- lua_getfield(L, index, "on_rightclick");
- def.rightclickable = lua_isfunction(L, -1);
- lua_pop(L, 1);
-
getboolfield(L, index, "liquids_pointable", def.liquids_pointable);
warn_if_field_exists(L, index, "tool_digging_properties",
@@ -1164,6 +1160,10 @@ static ContentFeatures read_content_features(lua_State *L, int index)
if(!lua_isnil(L, -1)) f.has_after_destruct = true;
lua_pop(L, 1);
+ lua_getfield(L, index, "on_rightclick");
+ f.rightclickable = lua_isfunction(L, -1);
+ lua_pop(L, 1);
+
/* Name */
getstringfield(L, index, "name", f.name);
@@ -4751,7 +4751,7 @@ static int l_register_item_raw(lua_State *L)
// Default to having client-side placement prediction for nodes
// ("" in item definition sets it off)
if(def.node_placement_prediction == "__default"){
- if(def.type == ITEM_NODE && !def.rightclickable)
+ if(def.type == ITEM_NODE)
def.node_placement_prediction = name;
else
def.node_placement_prediction = "";