summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-15 22:21:12 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:45 +0200
commit9fc78cbece4d26307dab814d8073fc0a1db90bf9 (patch)
tree3e89252f1ed2eb3805c69e7d55e09f3bb658c405 /src/nodedef.h
parente4dff41560f49473f3aeddfdfe6c37e286bf4d7e (diff)
downloadminetest-9fc78cbece4d26307dab814d8073fc0a1db90bf9.tar.gz
minetest-9fc78cbece4d26307dab814d8073fc0a1db90bf9.tar.bz2
minetest-9fc78cbece4d26307dab814d8073fc0a1db90bf9.zip
Fix flowing water being always opaque
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index b78b09d4c..b7cca52d0 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -245,11 +245,11 @@ struct ContentFeatures
void setTexture(u16 i, std::string name);
- void setAllTextures(std::string name, u8 alpha=255)
+ void setAllTextures(std::string name, u8 alpha_=255)
{
for(u16 i=0; i<6; i++)
setTexture(i, name);
- alpha = alpha;
+ alpha = alpha_;
// Force inventory texture too
setInventoryTexture(name);
}