mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Simplify single-character checks
This commit is contained in:
parent
d2996a308c
commit
4fc5c9af34
1 changed files with 2 additions and 2 deletions
|
@ -5379,9 +5379,9 @@ INT32 G_FindMapByNameOrCode(const char *mapname, char **realmapnamep)
|
|||
|
||||
if (mapnamelen == 1)
|
||||
{
|
||||
if (strcmp(mapname, "*") == 0) // current map
|
||||
if (mapname[0] == '*') // current map
|
||||
return gamemap;
|
||||
else if (strcmp(mapname, "+") == 0 && mapheaderinfo[gamemap-1]) // next map
|
||||
else if (mapname[0] == '+' && mapheaderinfo[gamemap-1]) // next map
|
||||
{
|
||||
newmapnum = mapheaderinfo[gamemap-1]->nextlevel;
|
||||
if (newmapnum < 1 || newmapnum > NUMMAPS)
|
||||
|
|
Loading…
Reference in a new issue