mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Fixing code style and making console warning more concise
This commit is contained in:
parent
cca6dd605c
commit
5c853c640f
1 changed files with 2 additions and 2 deletions
|
@ -58,9 +58,9 @@ var SpriteSheet = function (texture, sourceIndex, x, y, width, height, config)
|
|||
var column = Math.floor((height - margin + spacing) / (frameHeight + spacing));
|
||||
var total = row * column;
|
||||
|
||||
if(total === 0)
|
||||
if (total === 0)
|
||||
{
|
||||
console.warn('TextureManager.SpriteSheet: Frame config produces zero frames. Check frameWidth and frameHeight.');
|
||||
console.warn('SpriteSheet frame dimensions will result in zero frames.');
|
||||
}
|
||||
|
||||
if (startFrame > total || startFrame < -total)
|
||||
|
|
Loading…
Reference in a new issue