mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- 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:
parent
2713c2d3c3
commit
3067bad9b9
4 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue