From 45ed6e122c051b9787f21a4c8ccbe079499cfb8b Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Sun, 24 Feb 2002 16:40:35 +0000 Subject: [PATCH] Fixed a bug where the mode of knifes and grenades where reset to slashing and short throw. --- reaction/game/g_teamplay.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/reaction/game/g_teamplay.c b/reaction/game/g_teamplay.c index b7c8264e..ee9f4410 100644 --- a/reaction/game/g_teamplay.c +++ b/reaction/game/g_teamplay.c @@ -5,6 +5,10 @@ //----------------------------------------------------------------------------- // // $Log$ +// Revision 1.17 2002/02/24 16:40:35 jbravo +// Fixed a bug where the mode of knifes and grenades where reset to slashing +// and short throw. +// // Revision 1.16 2002/02/22 02:13:13 jbravo // Fixed a few bugs and did some cleanups // @@ -577,14 +581,14 @@ void EquipPlayer (gentity_t *ent) ent->client->ps.weapon = ent->client->teamplayWeapon; ent->client->numClips[ WP_PISTOL ] = 1; // extra clip of ammo for pistol ent->client->ps.ammo[ WP_PISTOL] = RQ3_PISTOL_AMMO; - ent->client->ps.persistant[PERS_WEAPONMODES] |= RQ3_KNIFEMODE; +// ent->client->ps.persistant[PERS_WEAPONMODES] |= RQ3_KNIFEMODE; if (ent->client->teamplayItem == HI_BANDOLIER) { bandolierFactor = 2; grenades = trap_Cvar_VariableIntegerValue( "g_RQ3_tgren" ); if (grenades > 0) ent->client->ps.ammo[WP_GRENADE] = grenades; - ent->client->ps.persistant[PERS_WEAPONMODES] |= RQ3_GRENSHORT; +// ent->client->ps.persistant[PERS_WEAPONMODES] |= RQ3_GRENSHORT; } else { bandolierFactor = 1; }