From 6ad256668a6ee95f4a0f09bd97e428d454100a8f Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Fri, 1 Dec 2006 12:55:20 +0000 Subject: [PATCH] only autoselect a secondary weapon if the player didn't have any of that type before (fix bug #2671) --- ChangeLog | 5 +++++ main/weapon.c | 31 +++++++++++++++++-------------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index c3f72837..a6788021 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-01 Chris Taylor + + * main/weapon.c: only autoselect a secondary weapon if the player + didn't have any of that type before (fix bug #2671) + 2006-11-30 Chris Taylor * arch/ogl/ogl.c: avoid loading OpenGL textures before they have diff --git a/main/weapon.c b/main/weapon.c index ca776242..ea97b970 100644 --- a/main/weapon.c +++ b/main/weapon.c @@ -1,4 +1,4 @@ -/* $Id: weapon.c,v 1.10 2004-08-28 23:17:45 schaffner Exp $ */ +/* $Id: weapon.c,v 1.11 2006-12-01 12:55:20 chris Exp $ */ /* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO @@ -23,7 +23,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #endif #ifdef RCS -static char rcsid[] = "$Id: weapon.c,v 1.10 2004-08-28 23:17:45 schaffner Exp $"; +static char rcsid[] = "$Id: weapon.c,v 1.11 2006-12-01 12:55:20 chris Exp $"; #endif #include @@ -598,21 +598,24 @@ int pick_up_secondary(int weapon_index,int count) Players[Player_num].secondary_ammo[weapon_index] = max; } - cutpoint=SOrderList (255); - if (SOrderList (weapon_index)