From f2f23c968ccc3e16163ad561cb3395bd2e02f966 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 16 Nov 2020 08:52:34 -0500 Subject: graphics: tiled: Remove version constraint. --- chickadee/graphics/tiled.scm | 7 ++----- 1 file 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 +;;; Copyright © 2018, 2020 David Thompson ;;; ;;; 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)) -- cgit v1.2.3