while (dplay_bpspeak || dplay_latency) {wait(10);}
str_cpy (str_info, "Connection lost!");
This won't work anymore, because dplay_latency doesn't get set to 0 after the connection was lost. I don't know whether it's supposed to be like this. Any other way to check for a disconnect on the client?