+USE unbound fix

This commit is contained in:
Maddes Buecher 2000-08-20 19:17:44 +00:00
parent 7815a27f98
commit 1cb4241fb4
3 changed files with 23 additions and 0 deletions

View file

@ -1418,6 +1418,8 @@ void SV_PreRunCmd(void)
SV_RunCmd
===========
*/
extern qboolean nouse; // 1999-10-29 +USE fix by Maddes
void SV_RunCmd (usercmd_t *ucmd, qboolean inside)
{
edict_t *ent;
@ -1469,6 +1471,12 @@ void SV_RunCmd (usercmd_t *ucmd, qboolean inside)
VectorCopy (ucmd->angles, sv_player->v.v_angle);
sv_player->v.button0 = ucmd->buttons & 1;
// 1999-10-29 +USE fix by Maddes start
if (!nouse)
{
sv_player->v.button1 = (ucmd->buttons & 4)>>2;
}
// 1999-10-29 +USE fix by Maddes end
sv_player->v.button2 = (ucmd->buttons & 2)>>1;
if (ucmd->impulse)
sv_player->v.impulse = ucmd->impulse;