From 4d891ee7fa5258411a90c80466478b980466babc Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Fri, 31 Jan 2014 13:28:42 -0800 Subject: [PATCH] Fixed sprite offset positioning bug. --- app/lib/surface/CocoSprite.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/surface/CocoSprite.coffee b/app/lib/surface/CocoSprite.coffee index 27009731b..c76959036 100644 --- a/app/lib/surface/CocoSprite.coffee +++ b/app/lib/surface/CocoSprite.coffee @@ -170,7 +170,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass p1 = p1.copy?() or _.clone(p1) p1.z += bobOffset return if p0 and p0.x is p1.x and p0.y is p1.y and p0.z is p1.z and not @options.camera.tweeningZoomTo - wop = x: p1.x, y: p1.y, z: if @thang.isLand then 0 else p1.z - @thang.depth + wop = x: p1.x, y: p1.y, z: if @thang.isLand then 0 else p1.z - @thang.depth / 2 sup = @options.camera.worldToSurface wop [@displayObject.x, @displayObject.y] = [sup.x, sup.y] @lastPos = p1.copy?() or _.clone(p1)