-Changed the scoreboard for nexuiz (only).
-Fixed a bug in the old quake menu.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4989
d7cf8633-e32d-0410-b094-
e92efae38249
case K_ENTER:
S_LocalSound ("sound/misc/menu2.wav");
case K_ENTER:
S_LocalSound ("sound/misc/menu2.wav");
- Cbuf_AddText(va("connect \"%s\"\n", hostcache_viewset[slist_cursor]->info.cname));
+ if (hostcache_viewcount)
+ Cbuf_AddText(va("connect \"%s\"\n", hostcache_viewset[slist_cursor]->info.cname));
int minutes, seconds, tens, units;
int l;
int minutes, seconds, tens, units;
int l;
- sprintf (str,"Monsters:%3i /%3i", cl.stats[STAT_MONSTERS], cl.stats[STAT_TOTALMONSTERS]);
- Sbar_DrawString (8, 4, str);
+ if (gamemode != GAME_NEXUIZ) {
+ sprintf (str,"Monsters:%3i /%3i", cl.stats[STAT_MONSTERS], cl.stats[STAT_TOTALMONSTERS]);
+ Sbar_DrawString (8, 4, str);
- sprintf (str,"Secrets :%3i /%3i", cl.stats[STAT_SECRETS], cl.stats[STAT_TOTALSECRETS]);
- Sbar_DrawString (8, 12, str);
+ sprintf (str,"Secrets :%3i /%3i", cl.stats[STAT_SECRETS], cl.stats[STAT_TOTALSECRETS]);
+ Sbar_DrawString (8, 12, str);
+ }
// time
minutes = cl.time / 60;
// time
minutes = cl.time / 60;
Sbar_DrawString (184, 4, str);
// draw level name
Sbar_DrawString (184, 4, str);
// draw level name
- l = strlen (cl.levelname);
- Sbar_DrawString (232 - l*4, 12, cl.levelname);
+ if (gamemode == GAME_NEXUIZ) {
+ l = strlen (cl.worldmodel->name);
+ Sbar_DrawString (232 - l*4, 12, cl.worldmodel->name);
+ } else {
+ l = strlen (cl.levelname);
+ Sbar_DrawString (232 - l*4, 12, cl.levelname);
+ }