From 43e74a8940dd16bccb14bc0773896120169adfcb Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Tue, 26 Feb 2002 03:46:53 +0000 Subject: [PATCH] Range can now be set on grenades. --- reaction/game/g_cmds.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reaction/game/g_cmds.c b/reaction/game/g_cmds.c index 3993c17f..9d44b91b 100644 --- a/reaction/game/g_cmds.c +++ b/reaction/game/g_cmds.c @@ -5,6 +5,9 @@ //----------------------------------------------------------------------------- // // $Log$ +// Revision 1.57 2002/02/26 03:46:53 jbravo +// Range can now be set on grenades. +// // Revision 1.56 2002/02/26 01:10:19 jbravo // Dead people cant speak to the living any more. // @@ -2489,6 +2492,12 @@ void Cmd_Weapon(gentity_t *ent) // nothing break; case WP_GRENADE: +// JBravo: Fix for uninitialized grenade mode + if ((ent->client->ps.persistant[PERS_WEAPONMODES] & RQ3_GRENSHORT) == 0 && + (ent->client->ps.persistant[PERS_WEAPONMODES] & RQ3_GRENMED) == 0) { + ent->client->ps.persistant[PERS_WEAPONMODES] |= RQ3_GRENSHORT; + ent->client->ps.persistant[PERS_WEAPONMODES] &= ~RQ3_GRENMED; + } // short, medium, long throws if ( (ent->client->ps.persistant[PERS_WEAPONMODES] & RQ3_GRENSHORT) == RQ3_GRENSHORT && (ent->client->ps.persistant[PERS_WEAPONMODES] & RQ3_GRENMED) == RQ3_GRENMED)