From 89d59c38b6c3a5f8689f88f6f823bfa866e1ee1b Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sun, 15 Jun 2014 19:53:24 -0700 Subject: [PATCH] Let awareness images replay over and over --- moonlight/js/moonlight-skulk.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 639a535..91da249 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -629,9 +629,12 @@ function stringSize(str, font) .appendTo($('body')), w = o.width(), h = o.height(); + hstep = 0; newlines = str.split("\n").length; + if ( newlines > 1 ) + hstep = 5; o.remove(); - return [w/newlines, (h+5)*newlines]; + return [w/newlines, (h+hstep)*newlines]; } var EffectSprite = function(game, x, y, key, frame, animation) {