Unify/cleanup max snapshot entities on client and server
This commit is contained in:
parent
d815052df0
commit
ac621642ac
5 changed files with 8 additions and 7 deletions
|
@ -271,10 +271,10 @@ static void SV_Startup( void ) {
|
|||
|
||||
svs.clients = Z_Malloc (sizeof(client_t) * sv_maxclients->integer );
|
||||
if ( com_dedicated->integer ) {
|
||||
svs.numSnapshotEntities = sv_maxclients->integer * PACKET_BACKUP * 64;
|
||||
svs.numSnapshotEntities = sv_maxclients->integer * PACKET_BACKUP * MAX_SNAPSHOT_ENTITIES;
|
||||
} else {
|
||||
// we don't need nearly as many when playing locally
|
||||
svs.numSnapshotEntities = sv_maxclients->integer * 4 * 64;
|
||||
svs.numSnapshotEntities = sv_maxclients->integer * 4 * MAX_SNAPSHOT_ENTITIES;
|
||||
}
|
||||
svs.initialized = qtrue;
|
||||
|
||||
|
@ -349,10 +349,10 @@ void SV_ChangeMaxClients( void ) {
|
|||
|
||||
// allocate new snapshot entities
|
||||
if ( com_dedicated->integer ) {
|
||||
svs.numSnapshotEntities = sv_maxclients->integer * PACKET_BACKUP * 64;
|
||||
svs.numSnapshotEntities = sv_maxclients->integer * PACKET_BACKUP * MAX_SNAPSHOT_ENTITIES;
|
||||
} else {
|
||||
// we don't need nearly as many when playing locally
|
||||
svs.numSnapshotEntities = sv_maxclients->integer * 4 * 64;
|
||||
svs.numSnapshotEntities = sv_maxclients->integer * 4 * MAX_SNAPSHOT_ENTITIES;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue