Merge pull request #1180 from FedeOmoto/dev

Unnecessary "if" in Line.fromSprite method
This commit is contained in:
Richard Davey 2014-09-09 22:11:26 +01:00
commit 5d5c8870f9

View file

@ -71,10 +71,8 @@ Phaser.Line.prototype = {
{ {
return this.setTo(startSprite.center.x, startSprite.center.y, endSprite.center.x, endSprite.center.y); return this.setTo(startSprite.center.x, startSprite.center.y, endSprite.center.x, endSprite.center.y);
} }
else
{ return this.setTo(startSprite.x, startSprite.y, endSprite.x, endSprite.y);
return this.setTo(startSprite.x, startSprite.y, endSprite.x, endSprite.y);
}
}, },