Vanilla Development Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS update: Vanilla/tools
Date: Sunday February 27, 19100 @ 16:34
Author: cameron
Update of /home/netrek/cvsroot/Vanilla/tools
In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv2522
Modified Files:
xtkill.c
Log Message:
Date: Sun, 27 Feb 2000 13:42:25 -0500
To: vanilla-list@us.netrek.org
From: Mark Mielke <mark@mielke.cc>
Subject: [VANILLA-LIST:2923] xtkill.c
Just a small little fix here to allow xtkill to access up to MAXPLAYER=36.
****************************************
Index: Vanilla/tools/xtkill.c
diff -u Vanilla/tools/xtkill.c:1.4 Vanilla/tools/xtkill.c:1.5
--- Vanilla/tools/xtkill.c:1.4 Mon Nov 15 19:10:42 1999
+++ Vanilla/tools/xtkill.c Sun Feb 27 16:34:19 2000
@@ -37,12 +37,16 @@
player=atoi(argv[1]);
if ((player == 0) && (*argv[1] != '0')) {
c = *argv[1];
- if (c >= 'a' && c <= 'j')
+ if (c >= 'a' && c <= 'z')
player = c - 'a' + 10;
else {
Usage();
}
}
+ if (player >= MAXPLAYER) {
+ printf("MAXPLAYER is set to %d.\n", MAXPLAYER);
+ exit(1);
+ }
if (players[player].p_status != PALIVE) {
if (argc > 2)
if (*argv[2] == 'F')
@@ -236,7 +240,7 @@
static void Usage(void)
{
printf("\
- xtkill [0-9a-j] <mode><mode option>\n\
+ xtkill [0-9a-z] <mode><mode option>\n\
\n\
where <mode> is one of :\n\
e(ject from game) (simulates self-destruct)\n\