From b0af04eeebf0d400b2d73532012b9bfbdb536d57 Mon Sep 17 00:00:00 2001 From: "X.organic" Date: Sat, 20 Aug 2022 21:45:22 +0200 Subject: [PATCH] Bring the maximum WAD file count up to 255 Per @TehRealSalt's recommendation. # Conflicts: # src/w_wad.h --- src/w_wad.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/w_wad.h b/src/w_wad.h index 361ee4e50..ec3013af7 100644 --- a/src/w_wad.h +++ b/src/w_wad.h @@ -99,9 +99,10 @@ void* vres_GetPatch(virtlump_t *vlump, INT32 tag); // ========================================================================= #define MAX_WADPATH 512 -#define MAX_WADFILES 127 // maximum of wad files used at the same time -// Replay code relies on it being an UINT8 and, just to be safe, in case some wad counter somewhere is a SINT8, you should NOT go above 127 here if you're lazy like me. -// Besides, are there truly 127 wads worth your interrest? +#define MAX_WADFILES 255 // maximum of wad files used at the same time +// Replay code relies on it being an UINT8. There are no SINT8s handling WAD indices, though. +// Can be set all the way up to 255 but not 256, +// because an UINT8 will never be >= 256, probably breaking some conditionals. #define lumpcache_t void *