Browse Source

engine: server: try to solve issue when server dll has no voice mgr

pull/2/head
Alibek Omarov 2 years ago
parent
commit
3da736a1eb
  1. 4
      engine/server/sv_client.c

4
engine/server/sv_client.c

@ -419,7 +419,9 @@ void SV_ConnectClient( netadr_t from ) @@ -419,7 +419,9 @@ void SV_ConnectClient( netadr_t from )
// reset viewentities (from previous level)
memset( newcl->viewentity, 0, sizeof( newcl->viewentity ));
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
Netchan_Setup( NS_SERVER, &newcl->netchan, from, qport, newcl, SV_GetFragmentSize );

Loading…
Cancel
Save