aboutsummaryrefslogtreecommitdiff
path: root/scene/2d/animated_sprite.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-06-12 13:53:18 -0300
committerJuan Linietsky2015-06-12 13:53:18 -0300
commit8945670bc0657c342f3f5106f757a6ac360de4c4 (patch)
tree7994184ff2167d2ae22fbba7a15d7138db75e032 /scene/2d/animated_sprite.cpp
parent4b35654a023e4fdcd3e3b12570ffdf3f11aeeb3d (diff)
downloadgodot-8945670bc0657c342f3f5106f757a6ac360de4c4.tar.gz
godot-8945670bc0657c342f3f5106f757a6ac360de4c4.tar.zst
godot-8945670bc0657c342f3f5106f757a6ac360de4c4.zip
Diffstat (limited to 'scene/2d/animated_sprite.cpp')
-rw-r--r--scene/2d/animated_sprite.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/2d/animated_sprite.cpp b/scene/2d/animated_sprite.cpp
index b49426f7e..e350a3401 100644
--- a/scene/2d/animated_sprite.cpp
+++ b/scene/2d/animated_sprite.cpp
@@ -149,11 +149,11 @@ void AnimatedSprite::_notification(int p_what) {
Size2i s;
s = texture->get_size();
- Point2i ofs=offset;
+ Point2 ofs=offset;
if (centered)
ofs-=s/2;
- Rect2i dst_rect(ofs,s);
+ Rect2 dst_rect(ofs,s);
if (hflip)
dst_rect.size.x=-dst_rect.size.x;
@@ -284,7 +284,7 @@ Rect2 AnimatedSprite::get_item_rect() const {
return Node2D::get_item_rect();
Size2i s = t->get_size();
- Point2i ofs=offset;
+ Point2 ofs=offset;
if (centered)
ofs-=s/2;