From 11ca89eec765302e50eec7595b65382b04d16e6b Mon Sep 17 00:00:00 2001 From: Shiar Date: Sun, 21 Sep 2008 03:24:50 +0200 Subject: [PATCH] scmap: correct tileset detection Only lower 3 bits indicate tileset. Other (unknown) bits are also set in some maps, resulting in an incorrect detection. --- scmap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scmap b/scmap index 28ade8c..06b5ebe 100755 --- a/scmap +++ b/scmap @@ -49,7 +49,7 @@ sub world { my $self = shift; # ERA: 0 1 2 3 4 5 6 7 my @worlds = qw(badlands platform install ashworld jungle desert ice twilight); - return $worlds[$self->era] || "?"; + return $worlds[$self->era & 7] || "?"; } # MTXM TILE -- 2.30.0