X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fnetserv.c;h=692265338b597df45b8b62510eb2bb736da08919;hb=ea6e4698905d7440a265e323d03cf13fc323c44b;hp=991fbba61ae2b94e999f4926c69958eeefc56342;hpb=1e5cae5e3ab889c3bcba80a065c6d7ba1e6d28a2;p=rocksndiamonds.git diff --git a/src/netserv.c b/src/netserv.c index 991fbba6..69226533 100644 --- a/src/netserv.c +++ b/src/netserv.c @@ -203,6 +203,7 @@ static void AddPlayer(int fd) nxn = 1; +#if 1 while (again) { again = FALSE; @@ -220,6 +221,19 @@ static void AddPlayer(int fd) v = v->next; } } +#else + again: + v = player->next; + while (v) + { + if (v->number == nxn) + { + nxn++; + goto again; + } + v = v->next; + } +#endif player->number = nxn; #if !defined(TARGET_SDL)