Avoid function call to check empty room name

Instead, a simple comparison of the first element will do.
This commit is contained in:
Misa
2021-09-12 21:54:47 -07:00
parent ddff461a6c
commit 8d0a90a588
2 changed files with 3 additions and 3 deletions

View File

@@ -3958,7 +3958,7 @@ void Game::gethardestroom(void)
if (roomx == 50 && roomy == 53) hardestroom =map.specialnames[6];
if (roomx == 50 && roomy == 54) hardestroom = map.specialnames[7];
}
else if (SDL_strcmp(map.roomname, "") == 0)
else if (map.roomname[0] == '\0')
{
hardestroom = map.hiddenname;
}