rocksndiamonds-3.1.2
[rocksndiamonds.git] / src / netserv.c
index 991fbba61ae2b94e999f4926c69958eeefc56342..692265338b597df45b8b62510eb2bb736da08919 100644 (file)
@@ -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)