mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user