Let awareness images replay over and over

This commit is contained in:
2014-06-15 19:53:24 -07:00
parent c4d1f3c925
commit 89d59c38b6

View File

@@ -629,9 +629,12 @@ function stringSize(str, font)
.appendTo($('body')), .appendTo($('body')),
w = o.width(), w = o.width(),
h = o.height(); h = o.height();
hstep = 0;
newlines = str.split("\n").length; newlines = str.split("\n").length;
if ( newlines > 1 )
hstep = 5;
o.remove(); o.remove();
return [w/newlines, (h+5)*newlines]; return [w/newlines, (h+hstep)*newlines];
} }
var EffectSprite = function(game, x, y, key, frame, animation) { var EffectSprite = function(game, x, y, key, frame, animation) {