PeterM: made some small mods so that this program would
work better on "large" images. git-svn-id: svn+ssh://svn.code.sf.net/p/crossfire/code/trunk/arch@847 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
3a04f819f6
commit
d95033cde3
|
|
@ -21,7 +21,7 @@ for ($i=0; $i <= $#ARGV; $i++) {
|
|||
$#name--;
|
||||
$destdir=join(m#/#, @name);
|
||||
|
||||
if ($source =~ /(\w+)\.(\d)(\d)(\d)\.png/ ) {
|
||||
if ($source =~ /([\w-]+)\.(\d)(\d)(\d)\.png/ ) {
|
||||
$base = $1;
|
||||
$facing = $3;
|
||||
$animation = $4;
|
||||
|
|
@ -60,7 +60,12 @@ for ($i=0; $i <= $#ARGV; $i++) {
|
|||
# Deal with naming convention. piece 10 should be A, A ascii
|
||||
# code starts at 65.
|
||||
if ($piece > 9 ) {
|
||||
if($piece > 9 + 26) {
|
||||
$np = chr( $piece + 55 + 6 )
|
||||
} else {
|
||||
|
||||
$np = chr($piece + 55);
|
||||
}
|
||||
} else {
|
||||
$np = $piece;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue