- 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,12 +73,12 @@ static int osdcmd_levelwarp(osdcmdptr_t parm)
static int osdcmd_map(osdcmdptr_t parm) static int osdcmd_map(osdcmdptr_t parm)
{ {
FString mapname;
if (parm->numparms != 1) if (parm->numparms != 1)
{ {
return OSDCMD_SHOWHELP; return OSDCMD_SHOWHELP;
} }
FString mapname = parm->parms[0];
if (!fileSystem.Lookup(mapname, "MAP")) if (!fileSystem.Lookup(mapname, "MAP"))
{ {

View file

@ -63,12 +63,11 @@ static int osdcmd_noclip(osdcmdptr_t UNUSED(parm))
static int osdcmd_map(osdcmdptr_t parm) static int osdcmd_map(osdcmdptr_t parm)
{ {
FString mapname;
if (parm->numparms != 1) if (parm->numparms != 1)
{ {
return OSDCMD_SHOWHELP; return OSDCMD_SHOWHELP;
} }
FString mapname = parm->parms[0];
if (!fileSystem.Lookup(mapname, "MAP")) if (!fileSystem.Lookup(mapname, "MAP"))
{ {

View file

@ -71,12 +71,11 @@ static int osdcmd_levelwarp(osdcmdptr_t parm)
static int osdcmd_map(osdcmdptr_t parm) static int osdcmd_map(osdcmdptr_t parm)
{ {
FString mapname;
if (parm->numparms != 1) if (parm->numparms != 1)
{ {
return OSDCMD_SHOWHELP; return OSDCMD_SHOWHELP;
} }
FString mapname = parm->parms[0];
if (!fileSystem.Lookup(mapname, "MAP")) if (!fileSystem.Lookup(mapname, "MAP"))
{ {

View file

@ -55,12 +55,11 @@ struct osdcmd_cheatsinfo osdcmd_cheatsinfo_stat = { -1, 0, 0 };
static int osdcmd_map(osdcmdptr_t parm) static int osdcmd_map(osdcmdptr_t parm)
{ {
FString mapname;
if (parm->numparms != 1) if (parm->numparms != 1)
{ {
return OSDCMD_SHOWHELP; return OSDCMD_SHOWHELP;
} }
FString mapname = parm->parms[0];
if (!fileSystem.Lookup(mapname, "MAP")) if (!fileSystem.Lookup(mapname, "MAP"))
{ {