aboutsummaryrefslogtreecommitdiff
path: root/src/mg_decoration.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-01-05 02:42:27 -0500
committerkwolekr <kwolekr@minetest.net>2015-01-05 02:42:27 -0500
commit2d849b0a19af03913e564e2b6dbc36eecdd5ae0c (patch)
tree4f1cfff6586c305c419562173b73c9ab9410c401 /src/mg_decoration.cpp
parent7289d61e99625b46eb2c4d6b90a2a5de42f207e6 (diff)
downloadminetest-2d849b0a19af03913e564e2b6dbc36eecdd5ae0c.tar.gz
minetest-2d849b0a19af03913e564e2b6dbc36eecdd5ae0c.tar.bz2
minetest-2d849b0a19af03913e564e2b6dbc36eecdd5ae0c.zip
Shorten ManualMapVoxelManipulator to MMVManip
Diffstat (limited to 'src/mg_decoration.cpp')
-rw-r--r--src/mg_decoration.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mg_decoration.cpp b/src/mg_decoration.cpp
index 415c1f752..a67c3cd8c 100644
--- a/src/mg_decoration.cpp
+++ b/src/mg_decoration.cpp
@@ -242,7 +242,7 @@ void DecoSimple::resolveNodeNames(NodeResolveInfo *nri)
}
-bool DecoSimple::canPlaceDecoration(ManualMapVoxelManipulator *vm, v3s16 p)
+bool DecoSimple::canPlaceDecoration(MMVManip *vm, v3s16 p)
{
// Don't bother if there aren't any decorations to place
if (c_decos.size() == 0)
@@ -287,8 +287,7 @@ bool DecoSimple::canPlaceDecoration(ManualMapVoxelManipulator *vm, v3s16 p)
}
-size_t DecoSimple::generate(ManualMapVoxelManipulator *vm, PseudoRandom *pr,
- s16 max_y, v3s16 p)
+size_t DecoSimple::generate(MMVManip *vm, PseudoRandom *pr, s16 max_y, v3s16 p)
{
if (!canPlaceDecoration(vm, p))
return 0;
@@ -325,8 +324,7 @@ int DecoSimple::getHeight()
///////////////////////////////////////////////////////////////////////////////
-size_t DecoSchematic::generate(ManualMapVoxelManipulator *vm, PseudoRandom *pr,
- s16 max_y, v3s16 p)
+size_t DecoSchematic::generate(MMVManip *vm, PseudoRandom *pr, s16 max_y, v3s16 p)
{
if (flags & DECO_PLACE_CENTER_X)
p.X -= (schematic->size.X + 1) / 2;