summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2020-11-16 08:52:34 -0500
committerDavid Thompson <dthompson2@worcester.edu>2020-11-16 17:27:10 -0500
commitf2f23c968ccc3e16163ad561cb3395bd2e02f966 (patch)
tree79d38eaf81d02efb7309b8b2115c87056ea9a6b4
parent35a28b2b69601f909a2b6412de9a055535b7d449 (diff)
graphics: tiled: Remove version constraint.
-rw-r--r--chickadee/graphics/tiled.scm7
1 files changed, 2 insertions, 5 deletions
diff --git a/chickadee/graphics/tiled.scm b/chickadee/graphics/tiled.scm
index 4f79a63..8da86b5 100644
--- a/chickadee/graphics/tiled.scm
+++ b/chickadee/graphics/tiled.scm
@@ -1,5 +1,5 @@
;;; Chickadee Game Toolkit
-;;; Copyright © 2018 David Thompson <davet@gnu.org>
+;;; Copyright © 2018, 2020 David Thompson <davet@gnu.org>
;;;
;;; Chickadee is free software: you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published
@@ -388,10 +388,7 @@
(%make-object-layer name objects properties)))
(let* ((tree (call-with-input-file file-name xml->sxml))
(m ((sxpath '(map)) tree))
- (version (let ((version (attr m 'version)))
- (unless (any (lambda (v) (string=? version v)) '("1.0" "1.1" "1.2"))
- (error "unsupported tiled map format version" version))
- version))
+ (version (attr m 'version))
(orientation (attr m 'orientation string->symbol))
(width (attr m 'width string->number))
(height (attr m 'height string->number))