mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-30 08:44:31 +00:00
engine: server: try to solve issue when server dll has no voice mgr
This commit is contained in:
parent
e30c61c0e2
commit
3da736a1eb
@ -419,7 +419,9 @@ void SV_ConnectClient( netadr_t from )
|
|||||||
// reset viewentities (from previous level)
|
// reset viewentities (from previous level)
|
||||||
memset( newcl->viewentity, 0, sizeof( newcl->viewentity ));
|
memset( newcl->viewentity, 0, sizeof( newcl->viewentity ));
|
||||||
newcl->num_viewents = 0;
|
newcl->num_viewents = 0;
|
||||||
newcl->listeners = 0;
|
// HACKHACK: can hear all players by default to avoid issues
|
||||||
|
// with server.dll without voice game manager
|
||||||
|
newcl->listeners = -1;
|
||||||
|
|
||||||
// initailize netchan
|
// initailize netchan
|
||||||
Netchan_Setup( NS_SERVER, &newcl->netchan, from, qport, newcl, SV_GetFragmentSize );
|
Netchan_Setup( NS_SERVER, &newcl->netchan, from, qport, newcl, SV_GetFragmentSize );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user