(svn r4975) - Codechange: increase the number of file handles from 32 to 64 (arbitrary powers of 2!) to allow more GRF files to be loaded.
authorpeter1138
Thu, 25 May 2006 09:57:27 +0000
changeset 3898 7c1f84e3b60b
parent 3897 e86bb2f51181
child 3899 5ba7f20a14ca
(svn r4975) - Codechange: increase the number of file handles from 32 to 64 (arbitrary powers of 2!) to allow more GRF files to be loaded.
fileio.c
sound.c
--- a/fileio.c	Wed May 24 17:45:42 2006 +0000
+++ b/fileio.c	Thu May 25 09:57:27 2006 +0000
@@ -20,7 +20,7 @@
 	byte *buffer, *buffer_end;
 	uint32 pos;
 	FILE *cur_fh;
-	FILE *handles[32];
+	FILE *handles[64];
 	byte buffer_start[512];
 } Fio;
 
--- a/sound.c	Wed May 24 17:45:42 2006 +0000
+++ b/sound.c	Thu May 25 09:57:27 2006 +0000
@@ -22,7 +22,7 @@
 static uint _file_count;
 static FileEntry* _files;
 
-#define SOUND_SLOT 31
+#define SOUND_SLOT 63
 // Number of levels of panning per side
 #define PANNING_LEVELS 16