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

CVS update: Vanilla/ntserv



Date:	Monday June 21, 1999 @ 21:06
Author:	unbelver

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

Modified Files:
	daemonII.c 
Log Message:

This is to add geno checking in the INL robot.

INL robot will now see geno correctly and end the game accordingly.

1 possible race condition.  If losing team has armies in flight and
drops army(ies) on the just neuted last planet before INL robot gets
its next time slice, robot will miss the geno.

Which begs the question that Cameron brought up:  If there are still
losing side armies in flight, is that really a geno?

--Carlos V.




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

Index: Vanilla/ntserv/daemonII.c
diff -u Vanilla/ntserv/daemonII.c:1.23 Vanilla/ntserv/daemonII.c:1.24
--- Vanilla/ntserv/daemonII.c:1.23	Fri Jun 11 03:04:10 1999
+++ Vanilla/ntserv/daemonII.c	Mon Jun 21 21:06:22 1999
@@ -3408,6 +3408,9 @@
     struct planet *homep = NULL;
     struct player *j;
 
+    /* let the inl robot check for geno if in INL mode */
+    if (status->gameup & GU_INROBOT) return;
+
     for (i = 0; i <= MAXTEAM; i++) /* maint: was "<" 6/22/92 TC */
         teams[i].s_plcount = 0;
 
@@ -3518,6 +3521,9 @@
     register struct player *j;
     int team[MAXTEAM + 1];
     int teamtemp[MAXTEAM + 1];
+
+    /* let the inl robot check for geno if in INL mode */
+    if (status->gameup & GU_INROBOT) return 0;
 
     teams[0].s_plcount = 0;
     for (i = 0; i < 4; i++) {