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

CVS update: Vanilla/tools



Date:	Monday November 15, 1999 @ 19:10
Author:	unbelver

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

Modified Files:
	xtkill.c 
Log Message:

The projects file says:

        - xtkill can't free observers?

Yes it can.  At least I can.  May be an erroneous entry.

        - xtkill can't change observer teams,
                % tools/xtkill g Tf
                Slot is not alive.

Fixed.


	* tools/xtkill.c (main): Exclude observers from live slot
	check. True, they're not alive, but they're not dead either.

--Carlos V.


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

Index: Vanilla/tools/xtkill.c
diff -u Vanilla/tools/xtkill.c:1.3 Vanilla/tools/xtkill.c:1.4
--- Vanilla/tools/xtkill.c:1.3	Fri Jun 25 16:50:16 1999
+++ Vanilla/tools/xtkill.c	Mon Nov 15 19:10:42 1999
@@ -56,8 +56,10 @@
  	        freeslot(&players[player]);
 		exit(0);
 	      }
-	printf("Slot is not alive.\n");
-	exit(1);
+        if(players[player].p_status != POBSERV) {
+	  printf("Slot is not alive.\n");
+	  exit(1);
+	}
       }
     if (argc > 2)
 	switch (*argv[2]) {