(svn r6783) -Codechange: Allow ParseConnectionString to allow players with more than one digit
authorDarkvater
Sun, 15 Oct 2006 23:31:22 +0000
changeset 4857 983fb5b391b7
parent 4856 3ed01482b9de
child 4858 91f058409592
(svn r6783) -Codechange: Allow ParseConnectionString to allow players with more than one digit
network.c
--- a/network.c	Sun Oct 15 20:46:10 2006 +0000
+++ b/network.c	Sun Oct 15 23:31:22 2006 +0000
@@ -527,8 +527,10 @@
 	char *p;
 	for (p = connection_string; *p != '\0'; p++) {
 		if (*p == '#') {
-			*player = p + 1;
 			*p = '\0';
+			*player = ++p;
+			while (IsValidAsciiChar(*p, CS_NUMERAL)) p++;
+			if (*p == '\0') break;
 		} else if (*p == ':') {
 			*port = p + 1;
 			*p = '\0';