Fix relative sprite animation
This commit is contained in:
1 parent
a26dab0809
commit
b620f82a2a
1 file changed
+1
-1
+1
-1
@@ -95,7 +95,7 @@ struct SpriteAnimData
|
||||
case SpriteAnimTarget.XY:
|
||||
this.data.x = cast(int)data[i++];
|
||||
this.data.y = cast(int)data[i++];
|
||||
if (!old && relative)
|
||||
if (relative)
|
||||
{
|
||||
this.data.x += sprite.x;
|
||||
this.data.y += sprite.y;
|
||||
|
||||
Reference in new issue
Block a user