mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-03-13 20:41:56 +00:00
NOTE: You MUST do serverinfo sv_allowflymode 1 for Mega2k! (This will
soon change I hope so you don't have to do anything.. In the meantime, NOT doing it fixes the problem with MegaTF 6.1.99 and older..)
This commit is contained in:
parent
aee1af505d
commit
6b7b6512ac
2 changed files with 8 additions and 3 deletions
|
@ -641,14 +641,14 @@ void Draw_ConsoleBackground (int lines)
|
|||
unsigned short *pusdest;
|
||||
int f, fstep;
|
||||
qpic_t *conback;
|
||||
static char saveback[320*8];
|
||||
// static char saveback[320*8];
|
||||
|
||||
conback = Draw_CachePic ("gfx/conback.lmp");
|
||||
|
||||
dest = conback->data + 320 - (strlen(cl_verstring->string)*8 + 11)
|
||||
+ 320*186;
|
||||
|
||||
memcpy(saveback, conback->data + 320*186, 320*8);
|
||||
// memcpy(saveback, conback->data + 320*186, 320*8);
|
||||
|
||||
// draw the pic
|
||||
if (r_pixbytes == 1)
|
||||
|
@ -705,7 +705,7 @@ void Draw_ConsoleBackground (int lines)
|
|||
}
|
||||
}
|
||||
// put it back
|
||||
memcpy(conback->data + 320*186, saveback, 320*8);
|
||||
// memcpy(conback->data + 320*186, saveback, 320*8);
|
||||
|
||||
Draw_Alt_String (vid.conwidth - strlen(cl_verstring->string)*8 - 11,
|
||||
lines-14, cl_verstring->string);
|
||||
|
|
|
@ -558,6 +558,11 @@ void SV_UpdateClientStats (client_t *client)
|
|||
|
||||
// Extensions to the QW 2.40 protocol for MegaTF
|
||||
stats[STAT_VIEWHEIGHT] = (int)ent->v.view_ofs[2];
|
||||
|
||||
if (ent->v.movetype == MOVETYPE_FLY
|
||||
&& !Q_atoi (Info_ValueForKey (svs.info, "sv_allowflymode")))
|
||||
ent->v.movetype = MOVETYPE_WALK;
|
||||
|
||||
stats[STAT_FLYMODE] = (ent->v.movetype == MOVETYPE_FLY);
|
||||
|
||||
for (i=0 ; i<MAX_CL_STATS ; i++)
|
||||
|
|
Loading…
Reference in a new issue