mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- fixed copy/pasted broken 'map' CCMD.
This commit is contained in:
parent
2334787f1b
commit
4bf519dcb0
4 changed files with 8 additions and 11 deletions
|
@ -73,13 +73,13 @@ 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"))
|
||||||
{
|
{
|
||||||
OSD_Printf(OSD_ERROR "map: file \"%s\" not found.\n", mapname.GetChars());
|
OSD_Printf(OSD_ERROR "map: file \"%s\" not found.\n", mapname.GetChars());
|
||||||
|
|
|
@ -63,13 +63,12 @@ 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"))
|
||||||
{
|
{
|
||||||
OSD_Printf(OSD_ERROR "map: file \"%s\" not found.\n", mapname.GetChars());
|
OSD_Printf(OSD_ERROR "map: file \"%s\" not found.\n", mapname.GetChars());
|
||||||
|
|
|
@ -71,13 +71,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"))
|
||||||
{
|
{
|
||||||
OSD_Printf(OSD_ERROR "map: file \"%s\" not found.\n", mapname.GetChars());
|
OSD_Printf(OSD_ERROR "map: file \"%s\" not found.\n", mapname.GetChars());
|
||||||
|
|
|
@ -55,13 +55,12 @@ 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"))
|
||||||
{
|
{
|
||||||
OSD_Printf(OSD_ERROR "map: file \"%s\" not found.\n", mapname.GetChars());
|
OSD_Printf(OSD_ERROR "map: file \"%s\" not found.\n", mapname.GetChars());
|
||||||
|
|
Loading…
Reference in a new issue