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

@ -60,7 +60,7 @@ var SpriteSheet = function (texture, sourceIndex, x, y, width, height, config)
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) if (startFrame > total || startFrame < -total)