Changeset - r7591:5612150f92ce
[Not reviewed]
master
0 1 0
truelight - 17 years ago 2007-09-15 16:01:34
truelight@openttd.org
(svn r11118) -Fix: sample.cat can now be in a tar-file too, how nice!
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/sound.cpp
Show inline comments
 
@@ -30,6 +30,7 @@ static void OpenBankFile(const char *fil
 
	uint i;
 

	
 
	FioOpenFile(SOUND_SLOT, filename);
 
	uint pos = FioGetPos();
 
	count = FioReadDword() / 8;
 
	FileEntry *fe = CallocT<FileEntry>(count);
 

	
 
@@ -42,11 +43,11 @@ static void OpenBankFile(const char *fil
 
	_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();
 
	}
 

	
0 comments (0 inline, 0 general)