fix some of the things that baker didn't like. sorry it took so long.

try to appease msvc6, just because.
update the downloads menu. now even betterer!...
fix proquake server angle snapping precision issue.
also accept _glow textures as an alternative to the more standard _luma.
compat for dp_water shader terms. tcgen stuff is still fscked up.
menu tooltip code can now properly deal with variable width etc stuff.
add missing te_flamejet builtin.
r_dynamic -1 can now cope with q3bsp for a small speedup.
added -watch commandline arg, to make it easier to figure out where cvar changes are coming from.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5015 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2016-08-25 00:12:14 +00:00
parent 8d2af6ff7b
commit c08a0aa139
104 changed files with 3629 additions and 2828 deletions

View file

@ -548,16 +548,16 @@ void VARGS Stats_Message(char *msg, ...)
p->time_start = cl.time;
}
#define MAX_CPRINT_LINES 128
#define MAX_CPRINT_LINES 256
void SCR_DrawCenterString (vrect_t *rect, cprint_t *p, struct font_s *font)
{
int l;
int y, x;
int l;
int y, x;
int left;
int right;
int top;
int bottom;
int remaining;
int remaining;
shader_t *pic;
conchar_t *line_start[MAX_CPRINT_LINES];
@ -1609,6 +1609,11 @@ void SCR_DrawPause (void)
if (!cl.paused)
return;
#ifndef CLIENTONLY
if (sv.active && sv.paused == PAUSE_AUTO)
return;
#endif
if (Key_Dest_Has(kdm_emenu) || Key_Dest_Has(kdm_gmenu))
return;
@ -2337,7 +2342,7 @@ static void SCR_ScreenShot_f (void)
}
BZ_Free(rgbbuffer);
}
Con_Printf ("Couldn't write %s\n", sysname);
Con_Printf (CON_ERROR "Couldn't write %s\n", sysname);
}
void *SCR_ScreenShot_Capture(int fbwidth, int fbheight, enum uploadfmt *fmt)
@ -2667,8 +2672,9 @@ static void SCR_DrawCharToSnap (int num, qbyte *dest, int width)
if (!draw_chars)
{
draw_chars = W_SafeGetLumpName("conchars");
if (!draw_chars)
size_t lumpsize;
draw_chars = W_SafeGetLumpName("conchars", &lumpsize);
if (!draw_chars || lumpsize != 128*128)
return;
}
@ -2681,7 +2687,7 @@ static void SCR_DrawCharToSnap (int num, qbyte *dest, int width)
while (drawline--)
{
for (x=0 ; x<8 ; x++)
if (source[x]!=255)
if (source[x] && source[x]!=255)
dest[x] = source[x];
source += 128;
dest -= width;