+ local_player = new_local_player;
+ }
+
+ TestPlayer = new_index_nr;
+
+ if (me.nr > MAX_PLAYERS)
+ Error(ERR_EXIT, "sorry - no more than %d players", MAX_PLAYERS);
+
+ sprintf(msgbuf, "you get client # %d", new_client_nr);
+ sysmsg(msgbuf);
+}
+
+static void Handle_OP_NUMBER_WANTED()
+{
+ int client_nr_wanted = buf[2];
+ int old_client_nr = buf[0];
+ int new_client_nr = buf[3];
+ int old_index_nr = old_client_nr - 1;
+ int new_index_nr = new_client_nr - 1;
+ int index_nr_wanted = client_nr_wanted - 1;
+ struct PlayerInfo *old_player = &stored_player[old_index_nr];
+ struct PlayerInfo *new_player = &stored_player[new_index_nr];
+
+ printf("OP_NUMBER_WANTED: %d\n", buf[0]);
+
+ if (new_client_nr == client_nr_wanted) /* switching succeeded */
+ {
+ struct user *u;
+
+ if (old_client_nr != client_nr_wanted) /* client's nr has changed */