mirror of
https://github.com/DrBeef/Raze.git
synced 2025-03-24 18:12:00 +00:00
- In SetupGame()
, test userConfig.DefaultCon
before userConfig.gamegrp
so addons work properly.
This commit is contained in:
parent
25460e8e98
commit
dc41057984
1 changed files with 18 additions and 0 deletions
|
@ -722,6 +722,24 @@ static TArray<GrpEntry> SetupGame()
|
|||
}
|
||||
foundit:
|
||||
|
||||
// If the user has specified a script, let's see if we know it.
|
||||
//
|
||||
if (groupno == -1 && userConfig.DefaultCon.Len())
|
||||
{
|
||||
FString DefaultConlower = userConfig.DefaultCon.MakeLower();
|
||||
|
||||
int g = 0;
|
||||
for (auto& grp : groups)
|
||||
{
|
||||
if (grp.FileInfo.scriptname.MakeLower() == DefaultConlower)
|
||||
{
|
||||
groupno = g;
|
||||
break;
|
||||
}
|
||||
g++;
|
||||
}
|
||||
}
|
||||
|
||||
// If the user has specified a file name, let's see if we know it.
|
||||
//
|
||||
if (groupno == -1 && userConfig.gamegrp.Len())
|
||||
|
|
Loading…
Reference in a new issue