diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2022-10-05 22:00:15 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2022-10-05 23:11:02 -0500 |
commit | 97d232c11d38f94e6719c83aa31771201c85430c (patch) | |
tree | b5da52b2de569469f36b25274f2fa3d42a3f1658 /core/math/rect2.h | |
parent | ea9bb98f26be8212245f6ff796617901a8b9f3f6 (diff) | |
download | redot-engine-97d232c11d38f94e6719c83aa31771201c85430c.tar.gz |
Enhancements to includes in core data structures
Diffstat (limited to 'core/math/rect2.h')
-rw-r--r-- | core/math/rect2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/rect2.h b/core/math/rect2.h index 2d1be3d4f3..5ed2f8236c 100644 --- a/core/math/rect2.h +++ b/core/math/rect2.h @@ -281,7 +281,7 @@ struct _NO_DISCARD_ Rect2 { } _FORCE_INLINE_ Rect2 abs() const { - return Rect2(Point2(position.x + MIN(size.x, 0), position.y + MIN(size.y, 0)), size.abs()); + return Rect2(Point2(position.x + MIN(size.x, (real_t)0), position.y + MIN(size.y, (real_t)0)), size.abs()); } Vector2 get_support(const Vector2 &p_normal) const { |