Fixing code style and making console warning more concise

This commit is contained in:
Andrew Groff 2018-07-08 15:12:02 -07:00
parent cca6dd605c
commit 5c853c640f

View file

@ -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)