From 477c848615d83cd1acd482d084f6f939d59112ba 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. --- src/w_wad.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/w_wad.h b/src/w_wad.h index 4b6ecb309..3ec33a30a 100644 --- a/src/w_wad.h +++ b/src/w_wad.h @@ -77,10 +77,10 @@ typedef struct // ========================================================================= #define MAX_WADPATH 512 -#define MAX_WADFILES 250 // maximum of wad files used at the same time +#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 (as the latter breaks for loops with UINT8 indices). -// 5 slots are left open for tricks that hardmods might engage in, like Moe Mansion's WAD_MUSIC. +// 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 *