mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 06:31:56 +00:00
Several updates that are going into 0.1.1---please feel free to test!
This commit is contained in:
parent
259b41b6f9
commit
b4112d0eca
8 changed files with 1357 additions and 12 deletions
|
@ -630,9 +630,9 @@ void Draw_ConsoleBackground (int lines)
|
|||
qpic_t *conback;
|
||||
static char saveback[320*8];
|
||||
#ifdef QUAKEWORLD
|
||||
char ver[] = "QuakeForge (Software QW) " QF_VERSION;
|
||||
char ver[] = "QuakeForge (QuakeWorld) " QF_VERSION;
|
||||
#else
|
||||
char ver[] = "QuakeForge (Software UQ) " QF_VERSION;
|
||||
char ver[] = "QuakeForge (\"Quack\" Commemorative Edition) " QF_VERSION;
|
||||
#endif
|
||||
|
||||
conback = Draw_CachePic ("gfx/conback.lmp");
|
||||
|
|
|
@ -25,6 +25,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
#include "quakedef.h"
|
||||
|
||||
#define HIPFIX
|
||||
|
||||
extern unsigned char d_15to8table[65536];
|
||||
extern cvar_t crosshair, cl_crossx, cl_crossy, crosshaircolor;
|
||||
|
||||
|
@ -222,6 +224,7 @@ qpic_t *Draw_PicFromWad (char *name)
|
|||
p = W_GetLumpName (name);
|
||||
gl = (glpic_t *)p->data;
|
||||
|
||||
#ifndef HIPFIX
|
||||
// load little ones into the scrap
|
||||
if (p->width < 64 && p->height < 64)
|
||||
{
|
||||
|
@ -246,6 +249,7 @@ qpic_t *Draw_PicFromWad (char *name)
|
|||
pic_texels += p->width*p->height;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
gl->texnum = GL_LoadPicTexture (p);
|
||||
gl->sl = 0;
|
||||
|
@ -810,9 +814,9 @@ Draw_ConsoleBackground
|
|||
void Draw_ConsoleBackground (int lines)
|
||||
{
|
||||
#ifdef QUAKEWORLD
|
||||
char ver[] = "QuakeForge (GL QW) " QF_VERSION;
|
||||
char ver[] = "QuakeForge (QuakeWorld) " QF_VERSION;
|
||||
#else
|
||||
char ver[] = "QuakeForge (GL UQ) " QF_VERSION;
|
||||
char ver[] = "QuakeForge (\"Quack\" Commemorative Edition) " QF_VERSION;
|
||||
#endif
|
||||
int x, i;
|
||||
int y;
|
||||
|
|
|
@ -559,14 +559,14 @@ void SCR_SetUpToDrawConsole (void)
|
|||
|
||||
if (scr_conlines < scr_con_current)
|
||||
{
|
||||
scr_con_current -= scr_conspeed.value*host_frametime;
|
||||
scr_con_current -= scr_conspeed.value*host_frametime*4;
|
||||
if (scr_conlines > scr_con_current)
|
||||
scr_con_current = scr_conlines;
|
||||
|
||||
}
|
||||
else if (scr_conlines > scr_con_current)
|
||||
{
|
||||
scr_con_current += scr_conspeed.value*host_frametime;
|
||||
scr_con_current += scr_conspeed.value*host_frametime*4;
|
||||
if (scr_conlines < scr_con_current)
|
||||
scr_con_current = scr_conlines;
|
||||
}
|
||||
|
|
1337
qw_client/sbar.c
Normal file
1337
qw_client/sbar.c
Normal file
File diff suppressed because it is too large
Load diff
|
@ -528,14 +528,14 @@ void SCR_SetUpToDrawConsole (void)
|
|||
|
||||
if (scr_conlines < scr_con_current)
|
||||
{
|
||||
scr_con_current -= scr_conspeed.value*host_frametime;
|
||||
scr_con_current -= scr_conspeed.value*host_frametime*4;
|
||||
if (scr_conlines > scr_con_current)
|
||||
scr_con_current = scr_conlines;
|
||||
|
||||
}
|
||||
else if (scr_conlines > scr_con_current)
|
||||
{
|
||||
scr_con_current += scr_conspeed.value*host_frametime;
|
||||
scr_con_current += scr_conspeed.value*host_frametime*4;
|
||||
if (scr_conlines < scr_con_current)
|
||||
scr_con_current = scr_conlines;
|
||||
}
|
||||
|
|
|
@ -565,14 +565,14 @@ void SCR_SetUpToDrawConsole (void)
|
|||
|
||||
if (scr_conlines < scr_con_current)
|
||||
{
|
||||
scr_con_current -= scr_conspeed.value*host_frametime;
|
||||
scr_con_current -= scr_conspeed.value*host_frametime*4;
|
||||
if (scr_conlines > scr_con_current)
|
||||
scr_con_current = scr_conlines;
|
||||
|
||||
}
|
||||
else if (scr_conlines > scr_con_current)
|
||||
{
|
||||
scr_con_current += scr_conspeed.value*host_frametime;
|
||||
scr_con_current += scr_conspeed.value*host_frametime*4;
|
||||
if (scr_conlines < scr_con_current)
|
||||
scr_con_current = scr_conlines;
|
||||
}
|
||||
|
|
|
@ -847,7 +847,11 @@ void Sbar_DrawFace (void)
|
|||
if (cl.stats[STAT_HEALTH] >= 100)
|
||||
f = 4;
|
||||
else
|
||||
{
|
||||
f = cl.stats[STAT_HEALTH] / 20;
|
||||
if (f < 0)
|
||||
f = 0;
|
||||
}
|
||||
|
||||
if (cl.time <= cl.faceanimtime)
|
||||
{
|
||||
|
|
|
@ -556,14 +556,14 @@ void SCR_SetUpToDrawConsole (void)
|
|||
|
||||
if (scr_conlines < scr_con_current)
|
||||
{
|
||||
scr_con_current -= scr_conspeed.value*host_frametime;
|
||||
scr_con_current -= scr_conspeed.value*host_frametime*4;
|
||||
if (scr_conlines > scr_con_current)
|
||||
scr_con_current = scr_conlines;
|
||||
|
||||
}
|
||||
else if (scr_conlines > scr_con_current)
|
||||
{
|
||||
scr_con_current += scr_conspeed.value*host_frametime;
|
||||
scr_con_current += scr_conspeed.value*host_frametime*4;
|
||||
if (scr_conlines < scr_con_current)
|
||||
scr_con_current = scr_conlines;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue