mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 09:54:10 +03:00
Avoid function call to check empty room name
Instead, a simple comparison of the first element will do.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user