mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- Improve the code readability in LookupLevelName.
This commit is contained in:
parent
4217c2ccd6
commit
353ace8be7
1 changed files with 2 additions and 1 deletions
|
@ -314,10 +314,11 @@ FString level_info_t::LookupLevelName()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// make sure nothing is stripped.
|
||||||
checkstring[0] = '\0';
|
checkstring[0] = '\0';
|
||||||
}
|
}
|
||||||
thename = strstr (lookedup, checkstring);
|
thename = strstr (lookedup, checkstring);
|
||||||
if (thename == NULL)
|
if (thename == NULL || thename == lookedup)
|
||||||
{
|
{
|
||||||
thename = lookedup;
|
thename = lookedup;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue