Changeset - r4857:8b1cc3b23ba5
[Not reviewed]
master
0 1 0
Darkvater - 18 years ago 2006-10-15 23:31:22
darkvater@openttd.org
(svn r6783) -Codechange: Allow ParseConnectionString to allow players with more than one digit
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
network.c
Show inline comments
 
@@ -527,8 +527,10 @@ void ParseConnectionString(const char **
 
	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';
0 comments (0 inline, 0 general)