From f8874eefeaabb3102a54d741f252f2ab6b170adc Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 7 Dec 2003 11:08:32 +0000 Subject: [PATCH] todo item done: fixed con_notify cvar (limits number of displayed notify lines) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3701 d7cf8633-e32d-0410-b094-e92efae38249 --- console.c | 10 ++-------- console.h | 1 - todo | 4 ++-- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/console.c b/console.c index f3d1ebc7..a9661cff 100644 --- a/console.c +++ b/console.c @@ -73,9 +73,6 @@ qboolean con_initialized; mempool_t *console_mempool; -// scan lines to clear for notify lines -int con_notifylines; - extern void M_Menu_Main_f (void); /* @@ -322,7 +319,7 @@ void Con_Print (const char *txt) { if (con_notify.integer < 0) Cvar_SetValueQuick(&con_notify, 0); - if (con_notifylines > MAX_NOTIFYLINES) + if (con_notify.integer > MAX_NOTIFYLINES) Cvar_SetValueQuick(&con_notify, MAX_NOTIFYLINES); if (con_notify.integer > 0) con_times[con_current % con_notify.integer] = realtime; @@ -518,7 +515,7 @@ void Con_DrawNotify (void) if (con_notify.integer < 0) Cvar_SetValueQuick(&con_notify, 0); - if (con_notifylines > MAX_NOTIFYLINES) + if (con_notify.integer > MAX_NOTIFYLINES) Cvar_SetValueQuick(&con_notify, MAX_NOTIFYLINES); v = 0; for (i= con_current-con_notify.integer+1 ; i<=con_current ; i++) @@ -564,9 +561,6 @@ void Con_DrawNotify (void) v += 8; } } - - if (con_notifylines < v) - con_notifylines = v; } /* diff --git a/console.h b/console.h index d6aec97c..780082b0 100644 --- a/console.h +++ b/console.h @@ -28,7 +28,6 @@ extern int con_totallines; extern int con_backscroll; extern qboolean con_initialized; extern qbyte *con_chars; -extern int con_notifylines; // scan lines to clear for notify lines void Con_CheckResize (void); void Con_InitLogging (void); diff --git a/todo b/todo index d1b0d40a..f1d9201a 100644 --- a/todo +++ b/todo @@ -67,7 +67,7 @@ d darkplaces: add DP_LITSUPPORT extension and document it 0 darkplaces: add vid_vsync cvar and also to options menu (metlslime) 0 darkplaces: alias layers should have a shadow volume pass so that nodraw textures don't cast a shadow (Electro) 0 darkplaces: can't move when stuck in a monster (SeienAbunae) -0 darkplaces: change particle() macro in cl_particles.c to have a do{}while(0) to eat the ; +f darkplaces: change particle() macro in cl_particles.c to have a do{}while(0) to eat the ; 0 darkplaces: check for out of bounds lump data ranges in maps (FrikaC) 0 darkplaces: check for truncated sound files (FrikaC) 0 darkplaces: cl_particles_maximum cvar (default 32768) which would change number of particles allowed at once (TheBeast) @@ -80,7 +80,7 @@ d darkplaces: add DP_LITSUPPORT extension and document it 0 darkplaces: embed a fallback conchars.tga so it can load in an empty directory with a visible console (right now it uses the checkerboard texture) 0 darkplaces: figure out what's wrong with gloss rendering vertex calculations, which may be GF2 related (QorpsE) 0 darkplaces: figure out why monsters keep making fall pain sound after they've landed in dpmod (Cruaich) -0 darkplaces: fix con_notify (should control number of lines) +d darkplaces: fix con_notify (should control number of lines) 0 darkplaces: fix disappearing viewmodel (and other models) when in an unvised q3bsp, or partially inside a wall in q3bsp 0 darkplaces: fix key based turning being affected by slowmo - it should not be 0 darkplaces: fix r_drawentities view problem (stops updating r_refdef.vieworg?) (Vic) -- 2.39.2