From 5a4d4735eaaf9c63cc5590709d08cb5261c1c524 Mon Sep 17 00:00:00 2001 From: oakes Date: Fri, 17 Jan 2014 22:36:08 -0500 Subject: [PATCH] Allow entities with no type to be drawn --- src/play_clj/core_graphics.clj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/play_clj/core_graphics.clj b/src/play_clj/core_graphics.clj index dff9515..96fc543 100644 --- a/src/play_clj/core_graphics.clj +++ b/src/play_clj/core_graphics.clj @@ -173,6 +173,8 @@ (defmulti draw-entity! #(-> % second :type)) +(defmethod draw-entity! nil [_]) + (defmethod draw-entity! :actor [[^SpriteBatch batch {:keys [^Actor object] :as entity}]] (assert object)