From 88bb6e54e3f045a92132c2ecefaa8a9f09434b5e Mon Sep 17 00:00:00 2001 From: oakes Date: Wed, 21 May 2014 22:17:03 -0400 Subject: [PATCH] Clarify conditional logic --- src/play_clj/g2d.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/play_clj/g2d.clj b/src/play_clj/g2d.clj index 7455fe8..7b6e817 100644 --- a/src/play_clj/g2d.clj +++ b/src/play_clj/g2d.clj @@ -48,7 +48,7 @@ (-> ^Pixmap arg Texture. TextureRegion.) (isa? (type arg) TextureRegion) arg - (:object arg) + (isa? (type arg) TextureEntity) (TextureRegion. ^TextureRegion (:object arg)) :else (TextureRegion. arg)))) @@ -96,7 +96,7 @@ (Texture. ^String arg)) TextureRegion. NinePatch.) - (:object arg) + (isa? (type arg) NinePatchEntity) (NinePatch. (:object arg)) (map? arg) (let [{:keys [region left right top bottom]} arg]