diff --git a/src/cljs/topdown2d/tileset.cljs b/src/cljs/topdown2d/tileset.cljs index 2a65b5c..72c253f 100644 --- a/src/cljs/topdown2d/tileset.cljs +++ b/src/cljs/topdown2d/tileset.cljs @@ -61,7 +61,7 @@ sy (* y tileheight)] (.drawImage ctx image sx sy tilewidth tileheight - (:x dest) (:y dest) + (int (:x dest)) (int (:y dest)) target-width target-height))) (defn draw-viewport [map-def ctx viewport]