- Blood/Duke/Exhumed/SW: Fix map CCMD so the game doesn't return to the menu if incorrect map specified (or crash in the case of Exhumed).

This commit is contained in:
Mitchell Richters 2020-08-21 15:11:02 +10:00
parent 2713c2d3c3
commit 3067bad9b9
4 changed files with 4 additions and 4 deletions

View file

@ -51,7 +51,7 @@ static int osdcmd_map(CCmdFuncPtr parm)
FString mapfilename = mapname;
DefaultExtension(mapfilename, ".map");
if (!fileSystem.FindFile(mapfilename))
if (!fileSystem.FileExists(mapfilename))
{
Printf(TEXTCOLOR_RED "map: file \"%s\" not found.\n", mapfilename.GetChars());
return CCMD_OK;

View file

@ -71,7 +71,7 @@ static int osdcmd_map(CCmdFuncPtr parm)
FString mapfilename = mapname;
DefaultExtension(mapfilename, ".map");
if (!fileSystem.FindFile(mapfilename))
if (!fileSystem.FileExists(mapfilename))
{
Printf(TEXTCOLOR_RED "map: file \"%s\" not found.\n", mapfilename.GetChars());
return CCMD_OK;

View file

@ -93,7 +93,7 @@ static int ccmd_map(CCmdFuncPtr parm)
FString mapfilename = mapname;
DefaultExtension(mapfilename, ".map");
if (!fileSystem.FindFile(mapfilename))
if (!fileSystem.FileExists(mapfilename))
{
Printf(TEXTCOLOR_RED "map: file \"%s\" not found.\n", mapname.GetChars());
return CCMD_OK;

View file

@ -82,7 +82,7 @@ static int osdcmd_map(CCmdFuncPtr parm)
FString mapfilename = mapname;
DefaultExtension(mapfilename, ".map");
if (!fileSystem.FindFile(mapfilename))
if (!fileSystem.FileExists(mapfilename))
{
Printf(TEXTCOLOR_RED "map: file \"%s\" not found.\n", mapfilename.GetChars());
return CCMD_OK;