diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-16 19:56:57 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-16 20:37:46 +0200 |
commit | 1eb14c7743dc73bd43eaf39f891105bfa741a458 (patch) | |
tree | b67af095966a50701d188ebae1d42dd6e4551091 /src/mapnode.h | |
parent | 56e9f97294ebc39967a3d029fe07e7c74849c1a1 (diff) | |
download | minetest-1eb14c7743dc73bd43eaf39f891105bfa741a458.tar.gz minetest-1eb14c7743dc73bd43eaf39f891105bfa741a458.tar.bz2 minetest-1eb14c7743dc73bd43eaf39f891105bfa741a458.zip |
Viscous fluids
Diffstat (limited to 'src/mapnode.h')
-rw-r--r-- | src/mapnode.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mapnode.h b/src/mapnode.h index 77f6b321f..4c2b92853 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -153,6 +153,10 @@ struct ContentFeatures content_t liquid_alternative_flowing; // If the content is liquid, this is the source version of the liquid. content_t liquid_alternative_source; + // Viscosity for fluid flow, ranging from 1 to 7, with + // 1 giving almost instantaneous propagation and 7 being + // the slowest possible + u8 liquid_viscosity; // Used currently for flowing liquids u8 vertex_alpha; // Special irrlicht material, used sometimes @@ -189,6 +193,7 @@ struct ContentFeatures initial_metadata = NULL; liquid_alternative_flowing = CONTENT_IGNORE; liquid_alternative_source = CONTENT_IGNORE; + liquid_viscosity = 0; vertex_alpha = 255; special_material = NULL; special_atlas = NULL; |