Fix relative sprite animation

This commit is contained in:
otya128 committed 2017-07-10 23:40:45 +09:00
1 parent a26dab0809
commit b620f82a2a
1 file changed
+1 -1
+1 -1
View File
@@ -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;