From 513c3d1c3ff1cdf9aef2492e29354a24c69339a7 Mon Sep 17 00:00:00 2001 From: Latapostrophe Date: Wed, 11 Mar 2020 12:34:35 +0100 Subject: [PATCH] don't set MAX_WADFILES to 256, worst mistake of my life --- src/w_wad.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/w_wad.h b/src/w_wad.h index 7a41bced..ffe63e79 100644 --- a/src/w_wad.h +++ b/src/w_wad.h @@ -77,8 +77,9 @@ typedef struct // ========================================================================= #define MAX_WADPATH 512 -#define MAX_WADFILES 256 // maximum of wad files used at the same time -// (there is a max of simultaneous open files anyway, and this should be plenty) +#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 lumpcache_t void *