- fixed copy/pasted broken 'map' CCMD.

This commit is contained in:
Christoph Oelckers 2020-01-30 20:25:52 +01:00
parent 2334787f1b
commit 4bf519dcb0
4 changed files with 8 additions and 11 deletions

View file

@ -73,13 +73,13 @@ static int osdcmd_levelwarp(osdcmdptr_t parm)
static int osdcmd_map(osdcmdptr_t parm)
{
FString mapname;
if (parm->numparms != 1)
{
return OSDCMD_SHOWHELP;
}
FString mapname = parm->parms[0];
if (!fileSystem.Lookup(mapname, "MAP"))
{
OSD_Printf(OSD_ERROR "map: file \"%s\" not found.\n", mapname.GetChars());

View file

@ -63,13 +63,12 @@ static int osdcmd_noclip(osdcmdptr_t UNUSED(parm))
static int osdcmd_map(osdcmdptr_t parm)
{
FString mapname;
if (parm->numparms != 1)
{
return OSDCMD_SHOWHELP;
}
FString mapname = parm->parms[0];
if (!fileSystem.Lookup(mapname, "MAP"))
{
OSD_Printf(OSD_ERROR "map: file \"%s\" not found.\n", mapname.GetChars());

View file

@ -71,13 +71,12 @@ static int osdcmd_levelwarp(osdcmdptr_t parm)
static int osdcmd_map(osdcmdptr_t parm)
{
FString mapname;
if (parm->numparms != 1)
{
return OSDCMD_SHOWHELP;
}
FString mapname = parm->parms[0];
if (!fileSystem.Lookup(mapname, "MAP"))
{
OSD_Printf(OSD_ERROR "map: file \"%s\" not found.\n", mapname.GetChars());

View file

@ -55,13 +55,12 @@ struct osdcmd_cheatsinfo osdcmd_cheatsinfo_stat = { -1, 0, 0 };
static int osdcmd_map(osdcmdptr_t parm)
{
FString mapname;
if (parm->numparms != 1)
{
return OSDCMD_SHOWHELP;
}
FString mapname = parm->parms[0];
if (!fileSystem.Lookup(mapname, "MAP"))
{
OSD_Printf(OSD_ERROR "map: file \"%s\" not found.\n", mapname.GetChars());