aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-06-19 14:30:22 +0000
committerPilzAdam <pilzadam@minetest.net>2013-06-19 15:47:00 +0000
commit53066024f6a91d5f83241b379b94d8557d43a646 (patch)
treec785c98f2cc0b45a2430e0e6a374676cd0a175c4 /src/script
parente65ac4d626f69656c57c07e4df1a1113a014f34a (diff)
downloadminetest-53066024f6a91d5f83241b379b94d8557d43a646.tar.gz
minetest-53066024f6a91d5f83241b379b94d8557d43a646.tar.bz2
minetest-53066024f6a91d5f83241b379b94d8557d43a646.zip
Add drowning
Diffstat (limited to 'src/script')
-rw-r--r--src/script/common/c_content.cpp1
-rw-r--r--src/script/lua_api/l_object.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp
index c7966a0be..64c76ef7c 100644
--- a/src/script/common/c_content.cpp
+++ b/src/script/common/c_content.cpp
@@ -389,6 +389,7 @@ ContentFeatures read_content_features(lua_State *L, int index)
f.liquid_viscosity = getintfield_default(L, index,
"liquid_viscosity", f.liquid_viscosity);
getboolfield(L, index, "liquid_renewable", f.liquid_renewable);
+ getboolfield(L, index, "drowning", f.drowning);
// Amount of light the node emits
f.light_source = getintfield_default(L, index,
"light_source", f.light_source);
diff --git a/src/script/lua_api/l_object.cpp b/src/script/lua_api/l_object.cpp
index 1e45610a6..f90b59285 100644
--- a/src/script/lua_api/l_object.cpp
+++ b/src/script/lua_api/l_object.cpp
@@ -62,6 +62,7 @@ struct EnumString es_HudBuiltinElement[] =
{HUD_FLAG_HEALTHBAR_VISIBLE, "healthbar"},
{HUD_FLAG_CROSSHAIR_VISIBLE, "crosshair"},
{HUD_FLAG_WIELDITEM_VISIBLE, "wielditem"},
+ {HUD_FLAG_BREATHBAR_VISIBLE, "breathbar"},
{0, NULL},
};