summaryrefslogtreecommitdiff
path: root/src/utility.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-01-25 09:30:49 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-01-25 09:30:49 +0200
commitde3fdba568cf0b05e8fe0ec7fb11552416474093 (patch)
tree65225261d60d8e7f6a2eaaee35c49f61767c7fdd /src/utility.cpp
parent39fbf1527308993cea7e0d2235ee1687e80d9755 (diff)
downloadminetest-de3fdba568cf0b05e8fe0ec7fb11552416474093.tar.gz
minetest-de3fdba568cf0b05e8fe0ec7fb11552416474093.tar.bz2
minetest-de3fdba568cf0b05e8fe0ec7fb11552416474093.zip
Tweaking around
Diffstat (limited to 'src/utility.cpp')
-rw-r--r--src/utility.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utility.cpp b/src/utility.cpp
index 269b545a5..8befaaeec 100644
--- a/src/utility.cpp
+++ b/src/utility.cpp
@@ -102,6 +102,10 @@ void mysrand(unsigned seed)
next = seed;
}
+/*
+ PointAttributeList
+*/
+
// Float with distance
struct DFloat
{
@@ -109,7 +113,7 @@ struct DFloat
u32 d;
};
-float PointAttributeList::getInterpolatedFloat(v3s16 p)
+float PointAttributeList::getInterpolatedFloat(v2s16 p)
{
const u32 near_wanted_count = 5;
// Last is nearest, first is farthest