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:
parent
276aab1209
commit
8f226ced84
1 changed files with 9 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue