Don't hide the sniper rifle scope if scoreboard is enabled

The fix also allows to turn on/off the scope during intermission (since
a few years the scope was blocked in intermission, because it was
immediately turned off by scoreboard).
This commit is contained in:
aurhat
2015-02-08 23:05:37 +01:00
parent d7c2c8333a
commit befd22d2e8
2 changed files with 3 additions and 3 deletions
+3 -2
View File
@@ -170,9 +170,11 @@ bool menuvisible()
return true;
}
extern void *scoremenu;
void rendermenu()
{
setscope(false);
if(curmenu != scoremenu) setscope(false);
gmenu &m = *curmenu;
m.refresh();
m.render();
@@ -1460,7 +1462,6 @@ void setscorefont();
VARFP(scorefont, 0, 0, 1, setscorefont());
void setscorefont()
{
extern void *scoremenu;
switch(scorefont)
{
case 1: menufont(scoremenu, "mono"); break;