mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Avoid function call to check empty room name
Instead, a simple comparison of the first element will do.
This commit is contained in:
parent
ddff461a6c
commit
8d0a90a588
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1737,7 +1737,7 @@ void gamerender(void)
|
|||
graphics.bprint(46, 6, game.timestring(), 196, 196, 196);
|
||||
}
|
||||
|
||||
if(map.extrarow==0 || (map.custommode && SDL_strcmp(map.roomname, "") != 0))
|
||||
if(map.extrarow==0 || (map.custommode && map.roomname[0] != '\0'))
|
||||
{
|
||||
graphics.footerrect.y = 230;
|
||||
if (graphics.translucentroomname)
|
||||
|
@ -2013,7 +2013,7 @@ void maprender(void)
|
|||
|
||||
//draw screen alliteration
|
||||
//Roomname:
|
||||
if (SDL_strcmp(map.hiddenname, "") != 0)
|
||||
if (map.hiddenname[0] != '\0')
|
||||
{
|
||||
graphics.Print(5, 2, map.hiddenname, 196, 196, 255 - help.glow, true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue