aboutsummaryrefslogtreecommitdiff
path: root/core/math/math_2d.cpp
diff options
context:
space:
mode:
authorreduz2015-12-29 18:46:21 -0300
committerreduz2015-12-29 18:46:21 -0300
commit555ad5f8b7facb9835ee3533d3b3e956cce4cdd1 (patch)
treee69f819320e20f26d686cfa6cc21125bcb0b57b3 /core/math/math_2d.cpp
parent196b3e03fc4887ed90bf6411f457e66d1e697fd8 (diff)
downloadgodot-555ad5f8b7facb9835ee3533d3b3e956cce4cdd1.tar.gz
godot-555ad5f8b7facb9835ee3533d3b3e956cce4cdd1.tar.zst
godot-555ad5f8b7facb9835ee3533d3b3e956cce4cdd1.zip
Diffstat (limited to 'core/math/math_2d.cpp')
-rw-r--r--core/math/math_2d.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/math/math_2d.cpp b/core/math/math_2d.cpp
index ce03f089e..e76f044df 100644
--- a/core/math/math_2d.cpp
+++ b/core/math/math_2d.cpp
@@ -187,7 +187,6 @@ Vector2 Vector2::snapped(const Vector2& p_by) const {
Vector2 Vector2::clamped(real_t p_len) const {
- return *this;
real_t l = length();
Vector2 v = *this;
if (l>0 && p_len<l) {