git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2482 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2007-03-17 15:40:23 +00:00
parent d6edc64933
commit 24c2512499

View file

@ -2400,7 +2400,7 @@ void QTV_Say(cluster_t *cluster, sv_t *qtv, viewer_t *v, char *message, qboolean
unsigned char *ip;
gethostname(buf, sizeof(buf));
NET_StringToAddr(buf, &addr, 0);
ip = ((struct sockaddr_in *)&addr)->sin_addr;
ip = (char*)&((struct sockaddr_in *)&addr)->sin_addr;
QW_PrintfToViewer(v, "[QuakeTV] %s | %i.%i.%i.%i\n", cluster->hostname, ip[0], ip[1], ip[2], ip[3]);
}