# HG changeset patch # User truelight # Date 1189872094 0 # Node ID 06202df3799e595ac6de47974f54f04c46d65784 # Parent 08e4689e05b39bd3f20ed6e5e074d8c2a19ec159 (svn r11118) -Fix: sample.cat can now be in a tar-file too, how nice! diff -r 08e4689e05b3 -r 06202df3799e src/sound.cpp --- a/src/sound.cpp Sat Sep 15 15:38:09 2007 +0000 +++ b/src/sound.cpp Sat Sep 15 16:01:34 2007 +0000 @@ -30,6 +30,7 @@ uint i; FioOpenFile(SOUND_SLOT, filename); + uint pos = FioGetPos(); count = FioReadDword() / 8; FileEntry *fe = CallocT(count); @@ -42,11 +43,11 @@ _file_count = count; _files = fe; - FioSeekTo(0, SEEK_SET); + FioSeekTo(pos, SEEK_SET); for (i = 0; i != count; i++) { fe[i].file_slot = SOUND_SLOT; - fe[i].file_offset = FioReadDword(); + fe[i].file_offset = FioReadDword() + pos; fe[i].file_size = FioReadDword(); }