From aed7e8166e4a3a064b4384f842e85f1e29070f16 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 12 Apr 2021 19:39:42 +0200 Subject: [PATCH] - fixed setup of startup title. --- source/core/gamecontrol.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/core/gamecontrol.cpp b/source/core/gamecontrol.cpp index 28516cf0c..e2560c4a3 100644 --- a/source/core/gamecontrol.cpp +++ b/source/core/gamecontrol.cpp @@ -835,15 +835,18 @@ int RunGame() G_LoadConfig(); auto usedgroups = SetupGame(); - for (auto& grp : usedgroups) + bool colorset = false; + for (int i = usedgroups.Size()-1; i >= 0; i--) { + auto& grp = usedgroups[i]; if (grp.FileInfo.name.IsNotEmpty()) { if (GameStartupInfo.Name.IsEmpty()) GameStartupInfo.Name = grp.FileInfo.name; - if (grp.FileInfo.FgColor != grp.FileInfo.BgColor && (GameStartupInfo.FgColor != 0 || GameStartupInfo.BkColor != 0)) + if (!colorset && grp.FileInfo.FgColor != grp.FileInfo.BgColor && (GameStartupInfo.FgColor != 0 || GameStartupInfo.BkColor != 0)) { GameStartupInfo.FgColor = grp.FileInfo.FgColor; GameStartupInfo.BkColor = grp.FileInfo.BgColor; + colorset = true; } } }