mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 03:51:32 +00:00
I suck
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2482 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d6edc64933
commit
24c2512499
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue