From 93eb481b6d7c5a9268d440798fb1a630c8d1a31f Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Sat, 13 Oct 2018 02:39:23 +0100 Subject: [PATCH] Fix a bug in scripts/try-uncompress --- scripts/try-uncompress | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/try-uncompress b/scripts/try-uncompress index b7a5c4c..ddff211 100755 --- a/scripts/try-uncompress +++ b/scripts/try-uncompress @@ -389,7 +389,8 @@ def sprites(filename) px = hdr.width * hdr.height pp hdr pp spr - + + data = spr.to_data puts "%s %03d: %02x %02x %02x %02x %3d %3d %5d %5d %.2f %02x %02x ... %02x"%[ filename, @@ -403,9 +404,9 @@ def sprites(filename) px, hdr.size, (hdr.size*8) / px.to_f, - spr.data.bytes[0], - spr.data.bytes[1], - spr.data.bytes[-1], + data.bytes[0], + data.bytes[1], + data.bytes[-1], ] end end