mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-04 00:05:31 +03: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:
@@ -1732,6 +1732,8 @@ void gamerender(void)
|
|||||||
|
|
||||||
if(map.extrarow==0 || (map.custommode && map.roomname[0] != '\0'))
|
if(map.extrarow==0 || (map.custommode && map.roomname[0] != '\0'))
|
||||||
{
|
{
|
||||||
|
const char* roomname;
|
||||||
|
|
||||||
graphics.footerrect.y = 230;
|
graphics.footerrect.y = 230;
|
||||||
if (graphics.translucentroomname)
|
if (graphics.translucentroomname)
|
||||||
{
|
{
|
||||||
@@ -1744,10 +1746,14 @@ void gamerender(void)
|
|||||||
|
|
||||||
if (map.finalmode)
|
if (map.finalmode)
|
||||||
{
|
{
|
||||||
graphics.bprint(5, 231, map.glitchname, 196, 196, 255 - help.glow, true);
|
roomname = map.glitchname;
|
||||||
}else{
|
|
||||||
graphics.bprint(5, 231, map.roomname, 196, 196, 255 - help.glow, true);
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
roomname = map.roomname;
|
||||||
|
}
|
||||||
|
|
||||||
|
graphics.bprint(5, 231, map.roomname, 196, 196, 255 - help.glow, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (map.roomtexton)
|
if (map.roomtexton)
|
||||||
|
|||||||
Reference in New Issue
Block a user