mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-19 07:00:52 +00:00
- Make changemap use + for next and +$ for nextsecret maps.
This commit is contained in:
parent
5a0dc4297f
commit
f89e6950c3
1 changed files with 10 additions and 17 deletions
|
@ -361,24 +361,17 @@ CCMD (changemap)
|
||||||
if (argv.argc() > 1)
|
if (argv.argc() > 1)
|
||||||
{
|
{
|
||||||
const char *mapname = argv[1];
|
const char *mapname = argv[1];
|
||||||
if (!strcmp(mapname, "*")) mapname = primaryLevel->MapName.GetChars();
|
if (!strcmp(mapname, "*"))
|
||||||
|
|
||||||
if (strstr(mapname, "next") && !P_CheckMapData(mapname))
|
|
||||||
{
|
{
|
||||||
if (!strcmp(mapname, "next"))
|
mapname = primaryLevel->MapName.GetChars();
|
||||||
{
|
}
|
||||||
if (primaryLevel->NextMap.Len() > 0 && primaryLevel->NextMap.Compare("enDSeQ", 6))
|
else if (!strcmp(mapname, "+") && primaryLevel->NextMap.Len() > 0 && primaryLevel->NextMap.Compare("enDSeQ", 6))
|
||||||
{
|
{
|
||||||
mapname = primaryLevel->NextMap.GetChars();
|
mapname = primaryLevel->NextMap.GetChars();
|
||||||
}
|
}
|
||||||
}
|
else if (!strcmp(mapname, "+$") && primaryLevel->NextSecretMap.Len() > 0 && primaryLevel->NextSecretMap.Compare("enDSeQ", 6))
|
||||||
else if (!strcmp(mapname, "nextsecret"))
|
{
|
||||||
{
|
mapname = primaryLevel->NextSecretMap.GetChars();
|
||||||
if (primaryLevel->NextSecretMap.Len() > 0 && primaryLevel->NextSecretMap.Compare("enDSeQ", 6))
|
|
||||||
{
|
|
||||||
mapname = primaryLevel->NextSecretMap.GetChars();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in a new issue