- Fix -map command-line argument not working.

* Fixes #441.
This commit is contained in:
Mitchell Richters 2021-06-24 18:49:26 +10:00
parent 6018213c71
commit 9645009b28
3 changed files with 11 additions and 6 deletions

View file

@ -681,6 +681,10 @@ void MainLoop ()
if (userConfig.CommandMap.IsNotEmpty())
{
auto maprecord = FindMapByName(userConfig.CommandMap);
if (maprecord == nullptr)
{
maprecord = SetupUserMap(userConfig.CommandMap, g_gameType & GAMEFLAG_DUKE? "dethtoll.mid" : nullptr);
}
userConfig.CommandMap = "";
if (maprecord)
{