1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-01 18:43:33 +02: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)