X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fnodedef.cpp;h=bb08871df371890cdf2685d96c59b9bd70254a3c;hb=cd563473fa298db3b910009f26ba263bacd84be9;hp=956bc1a5fa9b57aa23257ae77f2bfce095aaf937;hpb=6a8f9135de448d805457e0b1f561c711d760565e;p=oweals%2Fminetest.git diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 956bc1a5f..bb08871df 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -116,6 +116,9 @@ void ContentFeatures::reset() used_texturenames.clear(); /* Actual data + + NOTE: Most of this is always overridden by the default values given + in builtin.lua */ name = ""; drawtype = NDT_NORMAL; @@ -137,15 +140,14 @@ void ContentFeatures::reset() climbable = false; buildable_to = false; wall_mounted = false; - air_equivalent = false; often_contains_mineral = false; dug_item = ""; extra_dug_item = ""; extra_dug_item_rarity = 2; metadata_name = ""; liquid_type = LIQUID_NONE; - liquid_alternative_flowing = CONTENT_IGNORE; - liquid_alternative_source = CONTENT_IGNORE; + liquid_alternative_flowing = ""; + liquid_alternative_source = ""; liquid_viscosity = 0; light_source = 0; damage_per_second = 0; @@ -185,15 +187,14 @@ void ContentFeatures::serialize(std::ostream &os) writeU8(os, climbable); writeU8(os, buildable_to); writeU8(os, wall_mounted); - writeU8(os, air_equivalent); writeU8(os, often_contains_mineral); os<solidness = 1; if(f->alpha == 255) f->solidness = 2; + f->backface_culling = false; } break; case NDT_FLOWINGLIQUID: