Vanilla Development Maling List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS update: Vanilla/ntserv



Date:	Thursday March 25, 1999 @ 0:16
Author:	unbelver

Update of /home/netrek/cvsroot/Vanilla/ntserv
In directory cvs.castle.real-time.com:/var/tmp/cvs-serv2891/ntserv

Modified Files:
	solicit.c 
Log Message:
Minor problem with solicit.  Solicit wasn't sending "Game full" status
correctly.  It was checking all slots up to MAX_PLAYERS when it
should've stopped at queues[QU_PICKUP].high_slot.  Since high_slot can
be less than MAX_PLAYERS, it is possible to have a full game AND free
slots. 

--Carlos V.




****************************************

Index: Vanilla/ntserv/solicit.c
diff -u Vanilla/ntserv/solicit.c:1.2 Vanilla/ntserv/solicit.c:1.3
--- Vanilla/ntserv/solicit.c:1.2	Tue Mar 23 21:45:58 1999
+++ Vanilla/ntserv/solicit.c	Thu Mar 25 00:16:17 1999
@@ -170,8 +170,10 @@
     /* don't remake the packet unless necessary */
     if ( here == packet ) {
       
-      /* count up the number of free slots and players */
-      for (j=0; j<MAXPLAYER; j++)
+      /* count up the number of free slots and players for pickup games */
+      /* don't want to go all the way to MAX_PLAYERS.  Queue starts at */
+      /* queues[QU_PICKUP].high_slot players. */
+      for (j=0; j<queues[QU_PICKUP].high_slot; j++)
 	if (players[j].p_status == PFREE)
 	  nfree++;
 	else