aboutsummaryrefslogtreecommitdiff
path: root/src/mapnode.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-04 01:48:52 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-04 01:48:52 +0200
commit6545ea12e984fab63ed2a21d334de47f9bb342c1 (patch)
tree75f2dad4256fc939e0d7482bbec69f542185585c /src/mapnode.cpp
parent102c5e31fe75bc5c02ddb27afe69968ca8dedeed (diff)
downloadhax-minetest-server-6545ea12e984fab63ed2a21d334de47f9bb342c1.tar.gz
hax-minetest-server-6545ea12e984fab63ed2a21d334de47f9bb342c1.zip
nicer looking water
Diffstat (limited to 'src/mapnode.cpp')
-rw-r--r--src/mapnode.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp
index 6f34aa039..d585238ae 100644
--- a/src/mapnode.cpp
+++ b/src/mapnode.cpp
@@ -22,6 +22,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "porting.h"
#include <string>
#include "mineral.h"
+// For g_settings
+#include "main.h"
ContentFeatures::~ContentFeatures()
{
@@ -139,10 +141,13 @@ void init_mapnode(IIrrlichtWrapper *irrlicht)
f->buildable_to = true;
f->liquid_type = LIQUID_FLOWING;
+ bool new_style_water = g_settings.getBool("new_style_water");
+
i = CONTENT_WATERSOURCE;
f = &g_content_features[i];
//f->setTexture(0, irrlicht->getTextureId("water.png"), WATER_ALPHA);
- f->setAllTextures(irrlicht->getTextureId("water.png"), WATER_ALPHA);
+ if(new_style_water == false)
+ f->setAllTextures(irrlicht->getTextureId("water.png"), WATER_ALPHA);
f->setInventoryTexture(irrlicht->getTextureId("water.png"));
f->param_type = CPT_LIGHT;
f->light_propagates = true;