mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- fixed setup of startup title.
This commit is contained in:
parent
ac04403292
commit
aed7e8166e
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue