Skip to content

Commit 5c853c6

Browse files
author
Andrew Groff
committed
Fixing code style and making console warning more concise
1 parent cca6dd6 commit 5c853c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/textures/parsers/SpriteSheet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ var SpriteSheet = function (texture, sourceIndex, x, y, width, height, config)
5858
var column = Math.floor((height - margin + spacing) / (frameHeight + spacing));
5959
var total = row * column;
6060

61-
if(total === 0)
61+
if (total === 0)
6262
{
63-
console.warn('TextureManager.SpriteSheet: Frame config produces zero frames. Check frameWidth and frameHeight.');
63+
console.warn('SpriteSheet frame dimensions will result in zero frames.');
6464
}
6565

6666
if (startFrame > total || startFrame < -total)

0 commit comments

Comments
 (0)