summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <davet@gnu.org>2019-05-08 17:27:13 -0400
committerDavid Thompson <davet@gnu.org>2019-05-08 17:27:13 -0400
commit95519e678ff76ca00eabb52829493279c658ab71 (patch)
tree281d1c70389a8f5b4aabf289b1f8b66b744f5dbc
parent0ac439451258e86d9e2fce3a0e45cb41111018aa (diff)
render: tiled: Accept map versions 1.1 and 1.2.
-rw-r--r--chickadee/render/tiled.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chickadee/render/tiled.scm b/chickadee/render/tiled.scm
index 51f2cb9..8e8b8f4 100644
--- a/chickadee/render/tiled.scm
+++ b/chickadee/render/tiled.scm
@@ -370,7 +370,7 @@
(let* ((tree (call-with-input-file file-name xml->sxml))
(m ((sxpath '(map)) tree))
(version (let ((version (attr m 'version)))
- (unless (string=? version "1.0")
+ (unless (any (lambda (v) (string=? version v)) '("1.0" "1.1" "1.2"))
(error "unsupported tiled map format version" version))
version))
(orientation (attr m 'orientation string->symbol))