mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 06:31:56 +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;
|
||||
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, in_impulse);
|
||||
|
|
|
@ -58,6 +58,8 @@ char **com_argv;
|
|||
char *com_cmdline;
|
||||
cvar_t *cmdline;
|
||||
|
||||
qboolean nouse = false; // 1999-10-29 +USE fix by Maddes
|
||||
|
||||
/*
|
||||
================
|
||||
COM_CheckParm
|
||||
|
@ -143,6 +145,13 @@ COM_InitArgv ( int argc, char **argv )
|
|||
hipnotic = true;
|
||||
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
|
||||
===================
|
||||
*/
|
||||
extern qboolean nouse; // 1999-10-29 +USE fix by Maddes
|
||||
|
||||
void
|
||||
SV_ReadClientMove ( usercmd_t *move )
|
||||
{
|
||||
|
@ -488,6 +490,12 @@ SV_ReadClientMove ( usercmd_t *move )
|
|||
// read buttons
|
||||
bits = MSG_ReadByte ();
|
||||
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;
|
||||
|
||||
i = MSG_ReadByte ();
|
||||
|
|
Loading…
Reference in a new issue