if ( s == INVALID_UOXSOCKET ) qWarning("soundeffect() error: invalid socket");
void soundeffect(int s, unsigned char a, unsigned char b) // Play sound effect for player{	int i;		P_CHAR pc_currchar = currchar[s];	sfx[2] = a;	sfx[3] = b;	sfx[6] = pc_currchar->pos.x>>8;	sfx[7] = pc_currchar->pos.x%256;	sfx[8] = pc_currchar->pos.y>>8;	sfx[9] = pc_currchar->pos.y%256;	for (i=0;i<now;i++)//send to all inrange sockets, included the current socket		if ((perm[i])&&((inrange1(s,i))||(s==i)))		{			Xsend(i, sfx, 12);		}}