From 7197a864da687928568c662471fe23c220e1f971 Mon Sep 17 00:00:00 2001 From: oakes Date: Sun, 12 Oct 2014 21:34:06 -0400 Subject: [PATCH] Cast unit to float in tiled map constructors --- src/play_clj/core_graphics.clj | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/play_clj/core_graphics.clj b/src/play_clj/core_graphics.clj index 07fcf80..ff42086 100644 --- a/src/play_clj/core_graphics.clj +++ b/src/play_clj/core_graphics.clj @@ -369,7 +369,7 @@ screen coordinates. (OrthogonalTiledMapRenderer. ^TiledMap (if (string? path) (tiled-map* path) path) - ^double unit)) + (float unit))) (defmacro orthogonal-tiled-map "Returns an [OrthogonalTiledMapRenderer](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/maps/tiled/renderers/OrthogonalTiledMapRenderer.html) @@ -389,9 +389,9 @@ with the tiled map file at `path` and `unit` scale. (defn isometric-tiled-map* [path unit] (IsometricTiledMapRenderer. ^TiledMap (if (string? path) - (tiled-map* path) - path) - ^double unit)) + (tiled-map* path) + path) + (float unit))) (defmacro isometric-tiled-map "Returns an [IsometricTiledMapRenderer](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/maps/tiled/renderers/IsometricTiledMapRenderer.html) @@ -413,7 +413,7 @@ with the tiled map file at `path` and `unit` scale. (IsometricStaggeredTiledMapRenderer. ^TiledMap (if (string? path) (tiled-map* path) path) - ^double unit)) + (float unit))) (defmacro isometric-staggered-tiled-map "Returns an [IsometricStaggeredTiledMapRenderer](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/maps/tiled/renderers/IsometricStaggeredTiledMapRenderer.html) @@ -437,7 +437,7 @@ with the tiled map file at `path` and `unit` scale. (HexagonalTiledMapRenderer. ^TiledMap (if (string? path) (tiled-map* path) path) - ^double unit)) + (float unit))) (defmacro hexagonal-tiled-map "Returns a [HexagonalTiledMapRenderer](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/maps/tiled/renderers/HexagonalTiledMapRenderer.html)