mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-21 19:32:30 +00:00
+USE unbound fix
This commit is contained in:
parent
00d853bcb3
commit
2e8672bb67
3 changed files with 23 additions and 0 deletions
|
@ -609,6 +609,12 @@ CL_SendMove ( usercmd_t *cmd )
|
||||||
bits |= 2;
|
bits |= 2;
|
||||||
in_jump.state &= ~2;
|
in_jump.state &= ~2;
|
||||||
|
|
||||||
|
// 1999-10-29 +USE fix by Maddes start
|
||||||
|
if (in_use.state & 3)
|
||||||
|
bits |= 4;
|
||||||
|
in_use.state &= ~2;
|
||||||
|
// 1999-10-29 +USE fix by Maddes end
|
||||||
|
|
||||||
MSG_WriteByte (&buf, bits);
|
MSG_WriteByte (&buf, bits);
|
||||||
|
|
||||||
MSG_WriteByte (&buf, in_impulse);
|
MSG_WriteByte (&buf, in_impulse);
|
||||||
|
|
|
@ -58,6 +58,8 @@ char **com_argv;
|
||||||
char *com_cmdline;
|
char *com_cmdline;
|
||||||
cvar_t *cmdline;
|
cvar_t *cmdline;
|
||||||
|
|
||||||
|
qboolean nouse = false; // 1999-10-29 +USE fix by Maddes
|
||||||
|
|
||||||
/*
|
/*
|
||||||
================
|
================
|
||||||
COM_CheckParm
|
COM_CheckParm
|
||||||
|
@ -143,6 +145,13 @@ COM_InitArgv ( int argc, char **argv )
|
||||||
hipnotic = true;
|
hipnotic = true;
|
||||||
standard_quake = false;
|
standard_quake = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 1999-10-29 +USE fix by Maddes start
|
||||||
|
if (COM_CheckParm ("-nouse"))
|
||||||
|
{
|
||||||
|
nouse = true;
|
||||||
|
}
|
||||||
|
// 1999-10-29 +USE fix by Maddes end
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -462,6 +462,8 @@ SV_ClientThink ( void )
|
||||||
SV_ReadClientMove
|
SV_ReadClientMove
|
||||||
===================
|
===================
|
||||||
*/
|
*/
|
||||||
|
extern qboolean nouse; // 1999-10-29 +USE fix by Maddes
|
||||||
|
|
||||||
void
|
void
|
||||||
SV_ReadClientMove ( usercmd_t *move )
|
SV_ReadClientMove ( usercmd_t *move )
|
||||||
{
|
{
|
||||||
|
@ -488,6 +490,12 @@ SV_ReadClientMove ( usercmd_t *move )
|
||||||
// read buttons
|
// read buttons
|
||||||
bits = MSG_ReadByte ();
|
bits = MSG_ReadByte ();
|
||||||
host_client->edict->v.button0 = bits & 1;
|
host_client->edict->v.button0 = bits & 1;
|
||||||
|
// 1999-10-29 +USE fix by Maddes start
|
||||||
|
if (!nouse)
|
||||||
|
{
|
||||||
|
host_client->edict->v.button1 = (bits & 4)>>2;
|
||||||
|
}
|
||||||
|
// 1999-10-29 +USE fix by Maddes end
|
||||||
host_client->edict->v.button2 = (bits & 2)>>1;
|
host_client->edict->v.button2 = (bits & 2)>>1;
|
||||||
|
|
||||||
i = MSG_ReadByte ();
|
i = MSG_ReadByte ();
|
||||||
|
|
Loading…
Reference in a new issue