Permalink
Browse files

Merge pull request #15 from tapostrophemo/master

minor fix for animation images in tilemapEditor (thanks to tapostrophemo)
  • Loading branch information...
2 parents 1eab10f + 0da4cee commit c62c27525120d7bfbe77b89011513623406423c2 @onaluf committed Jun 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tools/tilemapEditor/js/script.js
@@ -20,7 +20,7 @@ var toInt = function(value){
}
var generateBackground = function(animation) {
- var background = "url('"+animation.url+"') -"+animation.offsetx+" -"+animation.offsety;
+ var background = "url('"+animation.url+"') -"+animation.offsetx+"px -"+animation.offsety+"px";
return background
}
@@ -589,4 +589,4 @@ $(function(){
$("#newButton").addClass("disabled");
return true;
});
-});
+});

0 comments on commit c62c275

Please sign in to comment.