Date: Thursday July 6, 2000 @ 14:34
Author: karthik
Update of /home/netrek/cvsroot/Vanilla/robots
In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv11146
Modified Files:
newbie.c
Log Message:
Fixing a bug that would cause all bots to exit at once.
****************************************
Index: Vanilla/robots/newbie.c
diff -u Vanilla/robots/newbie.c:1.3 Vanilla/robots/newbie.c:1.4
--- Vanilla/robots/newbie.c:1.3 Thu Jul 6 09:53:41 2000
+++ Vanilla/robots/newbie.c Thu Jul 6 14:34:10 2000
@@ -217,10 +217,10 @@
int np = num_players(&next_team);
if (!(ticks % ROBOEXITWAIT))
- /* Stop multiple bots if multiple people have joined since the
- last ROBOEXITWAIT */
- while ((QUPLAY(QU_NEWBIE_PLR) + QUPLAY(QU_NEWBIE_BOT)) >= queues[QU_PICKUP].max_slots)
+ {
+ if ((QUPLAY(QU_NEWBIE_PLR) + QUPLAY(QU_NEWBIE_BOT)) >= queues[QU_PICKUP].max_slots)
stop_a_robot();
+ }
else if ((QUPLAY(QU_NEWBIE_PLR) + QUPLAY(QU_NEWBIE_BOT)) < (queues[QU_PICKUP].max_slots - 1))
{
if (next_team == FED)