summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2018-05-13 23:26:45 -0300
committerMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2018-05-14 02:14:56 -0300
commit7f72d6476b7bf5a248685e91a994ac4d73e50ff6 (patch)
treefd6136d186eb11a8421835c27810945974d7c964 /scene/2d
parent0db3d1d2a754aa122bcbb6ed74cf6f10ba3fc859 (diff)
Fixed some warnings found with Cppcheck.
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/parallax_layer.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/scene/2d/parallax_layer.cpp b/scene/2d/parallax_layer.cpp
index 584c2f2c85..2ac6c76032 100644
--- a/scene/2d/parallax_layer.cpp
+++ b/scene/2d/parallax_layer.cpp
@@ -120,7 +120,6 @@ void ParallaxLayer::set_base_offset_and_scale(const Point2 &p_offset, float p_sc
if (mirroring.x) {
double den = mirroring.x * p_scale;
- double before = new_ofs.x;
new_ofs.x -= den * ceil(new_ofs.x / den);
}