1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

De-duplicate finalmode glitchname printing

Instead of copy-pasting the call twice, just use a variable to switch
between the two names.
This commit is contained in:
Misa 2021-12-26 00:03:18 -08:00
parent 276aab1209
commit 8f226ced84

View file

@ -1732,6 +1732,8 @@ void gamerender(void)
if(map.extrarow==0 || (map.custommode && map.roomname[0] != '\0'))
{
const char* roomname;
graphics.footerrect.y = 230;
if (graphics.translucentroomname)
{
@ -1744,10 +1746,14 @@ void gamerender(void)
if (map.finalmode)
{
graphics.bprint(5, 231, map.glitchname, 196, 196, 255 - help.glow, true);
}else{
graphics.bprint(5, 231, map.roomname, 196, 196, 255 - help.glow, true);
roomname = map.glitchname;
}
else
{
roomname = map.roomname;
}
graphics.bprint(5, 231, map.roomname, 196, 196, 255 - help.glow, true);
}
if (map.roomtexton)