changeset 3898:63ef4f85f175 draft

(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.
author peter1138 <peter1138@openttd.org>
date Thu, 25 May 2006 09:57:27 +0000
parents 1970bf2c49de
children cd96004d4545
files fileio.c sound.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/fileio.c
+++ b/fileio.c
@@ -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
+++ b/sound.c
@@ -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