0
0
Fork 0
mirror of https://github.com/ZDoom/qzdoom.git synced 2025-03-22 10:51:56 +00:00

Merge pull request from edward-san/lookuplevelname_fix

LookupLevelName fix
This commit is contained in:
coelckers 2015-05-02 17:00:16 +02:00
commit 16d87f4a8c

View file

@ -312,8 +312,13 @@ FString level_info_t::LookupLevelName()
{
mysnprintf (checkstring, countof(checkstring), "%d: ", atoi(&MapName[5]));
}
else
{
// make sure nothing is stripped.
checkstring[0] = '\0';
}
thename = strstr (lookedup, checkstring);
if (thename == NULL)
if (thename == NULL || thename == lookedup)
{
thename = lookedup;
}