[SCM] Packaging for original LIERO binary data branch, master, updated. upstream/1.33-44-g72fad05

Martin Erik Werner martinerikwerner at gmail.com
Fri Mar 30 19:58:13 UTC 2012


The following commit has been merged in the master branch:
commit 11a6effbdd39d068134ab07782e19e701d1cda3d
Author: Martin Erik Werner <martinerikwerner at gmail.com>
Date:   Tue Mar 20 11:29:30 2012 +0100

    Fix miss adding headersize to indexsize

diff --git a/debian/scripts/packsounds b/debian/scripts/packsounds
index ca3feec..ce8c7c4 100755
--- a/debian/scripts/packsounds
+++ b/debian/scripts/packsounds
@@ -59,7 +59,7 @@ offsetsize=4
 sizeoffset=$(($namesize + offsetsize))
 sizesize=4
 entrysize=$(($namesize + $offsetsize + $sizesize))
-indexsize=$(($sounds * $entrysize))
+indexsize=$(($headersize + $sounds * $entrysize))
 names="SHOTGUN SHOT RIFLE BAZOOKA BLASTER THROW LARPA EXP3A EXP3B EXP2 EXP3 EXP4 EXP5 DIRT BUMP DEATH1 DEATH2 DEATH3 HURT1 HURT2 HURT3 ALIVE BEGIN DROPSHEL RELOADED MOVEUP MOVEDOWN SELECT BOING BURNER"
 
 # Output file:
@@ -129,7 +129,7 @@ i=0
 for n in $names; do
 	name="$n"
 	file="$n.wav"
-	entryoffset="$(($i * $entrysize + $headersize))"
+	entryoffset="$(($headersize + $i * $entrysize))"
 	dataoffset="$(($dataoffset + datasize))"
 	datasize="$(sox -t wav "$file" \
 		-t raw -b 8 -e signed-integer -r 22050 -B -c 1 - | \

-- 
Packaging for original LIERO binary data



More information about the Pkg-games-commits mailing list