From 7fb44bdb0239a8012be73cb9ee384a9fdca9addb Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 17 Feb 2021 10:21:58 +0000 Subject: [PATCH] Tweakmaps! Literally identical to Encore remapping, but *only applied when Encore mode is OFF*. Long-requested by Oni, and allows you to reuse textures and skies from other stages without having to duplicate them in different colours. --- src/p_setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_setup.c b/src/p_setup.c index 6cd4ffd72..ba46c60e5 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -4013,7 +4013,7 @@ boolean P_LoadLevel(boolean fromnetsave) I_Error("Map %s not found.\n", maplumpname); R_ReInitColormaps(mapheaderinfo[gamemap-1]->palette, - (encoremode ? W_CheckNumForName(va("%sE", maplumpname)) : LUMPERROR)); + W_CheckNumForName(va("%s%c", maplumpname, (encoremode ? 'E' : 'T')))); CON_SetupBackColormap(); // SRB2 determines the sky texture to be used depending on the map header.