From e3eeb229d8054d5cd81158cee3697c09fc88a255 Mon Sep 17 00:00:00 2001 From: toaster Date: Fri, 27 Jan 2023 19:28:54 +0000 Subject: [PATCH] M_MinimapGenerate: Include lumpname in minigen output filename Corrects an oversight I thought of over the past few days. - Permits a mapper doing minimap maintenance on multiple maps in one uninterrupted game session. - Standard Filename format example: RR_GREENHILLS-MINIMAP.png - Multiplier filename format example: RR_GREENHILLS-MINIMAP-10.png --- src/m_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/m_misc.c b/src/m_misc.c index 49910a644..817ac152b 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -1792,11 +1792,11 @@ void M_MinimapGenerate(void) return; } - filepath = va("%s" PATHSEP "MINIMAP-%d.png", srb2home, mul); + filepath = va("%s" PATHSEP "%s-MINIMAP-%d.png", srb2home, G_BuildMapName(gamemap), mul); } else { - filepath = va("%s" PATHSEP "MINIMAP.png", srb2home); + filepath = va("%s" PATHSEP "%s-MINIMAP.png", srb2home, G_BuildMapName(gamemap)); } minigen = AM_MinimapGenerate(mul);