Skip to content

Commit

Permalink
Update CCheckTransmitInfo (alliedmodders#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
xen-000 committed Oct 16, 2023
1 parent bf3b72e commit 1c94bbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion public/const.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#define SP_MODEL_INDEX_BITS 11

// How many bits to use to encode an edict.
#define MAX_EDICT_BITS 11 // # of bits needed to represent max edicts
#define MAX_EDICT_BITS 14 // # of bits needed to represent max edicts
// Max # of edicts in a level
#define MAX_EDICTS (1<<MAX_EDICT_BITS)

Expand Down
17 changes: 3 additions & 14 deletions public/iservernetworkable.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,10 @@ class CBaseNetworkable;
class CCheckTransmitInfo
{
public:
edict_t *m_pClientEnt; // pointer to receiver edict
byte m_PVS[PAD_NUMBER( MAX_MAP_CLUSTERS,8 ) / 8];
int m_nPVSSize; // PVS size in bytes

CBitVec<MAX_EDICTS> *m_pTransmitEdict; // entity n is already marked for transmission
CBitVec<MAX_EDICTS> *m_pTransmitEntity; // entity n is already marked for transmission
CBitVec<MAX_EDICTS> *m_pTransmitAlways; // entity n is always send even if not in PVS (HLTV and Replay only)

int m_AreasNetworked; // number of networked areas
int m_Areas[MAX_WORLD_AREAS]; // the areas

// This is used to determine visibility, so if the previous state
// is the same as the current state (along with pvs and areas networked),
// then the parts of the map that the player can see haven't changed.
byte m_AreaFloodNums[MAX_MAP_AREAS];
int m_nMapAreas;

// TODO: This is incomplete and may require further reversing in the future.
};

//-----------------------------------------------------------------------------
Expand Down

0 comments on commit 1c94bbf

Please sign in to comment.