mirror of
https://github.com/photonstorm/phaser
synced 2024-11-14 00:47:29 +00:00
Merge pull request #1180 from FedeOmoto/dev
Unnecessary "if" in Line.fromSprite method
This commit is contained in:
commit
5d5c8870f9
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue