diff --git a/source/duke3d/src/gamedef.cpp b/source/duke3d/src/gamedef.cpp index a2aedeea3..cf5260158 100644 --- a/source/duke3d/src/gamedef.cpp +++ b/source/duke3d/src/gamedef.cpp @@ -788,13 +788,6 @@ static inthashtable_t *const inttables[] = { &h_actorvar, }; -static inthashtable_t *const inttables_free[] = { - &h_varvar, - &h_globalvar, - &h_playervar, - &h_actorvar, -}; - const tokenmap_t iter_tokens [] = { @@ -1792,6 +1785,7 @@ static int C_GetStructureIndexes(bool const labelsonly, hashtable_t const * cons return labelNum; } +#ifdef CURRENTLY_UNUSED static FORCE_INLINE bool C_IntPow2(int32_t const v) { return ((v!=0) && (v&(v-1))==0); @@ -1808,6 +1802,7 @@ static inline uint32_t C_Pow2IntLogBase2(int32_t const v) return r; } +#endif static bool C_CheckMalformedBranch(intptr_t lastScriptPtr) { diff --git a/source/duke3d/src/net.cpp b/source/duke3d/src/net.cpp index 288ab5340..391743562 100644 --- a/source/duke3d/src/net.cpp +++ b/source/duke3d/src/net.cpp @@ -199,7 +199,9 @@ static const uint32_t cInitialMapStateRevisionNumber = 0; static const uint32_t cStartingRevisionIndex = 1; static const int32_t cLocSprite_DeletedSpriteStat = MAXSTATUS; +#ifdef CURRENTLY_UNUSED static const int32_t cNetSprite_DeletedSpriteStat = STAT_NETALLOC; +#endif //[75] When a client attempts to allocate a sprite during the game loop, which is not defined as a clientside sprite, // the insert will go through, and the sprite will be put on this list. @@ -441,6 +443,7 @@ static netField_t ActorFields[] = // max packet array size #define MAX_WORLDBUFFER WORLD_DATASIZE + WORLD_OVERHEADSIZE +#ifdef CURRENTLY_UNUSED // Just so you can get an idea of how much memory the netcode needs... static const int64_t cWORLD_DataSize = WORLD_DATASIZE; static const int64_t cWORLD_OverheadSize = WORLD_OVERHEADSIZE; @@ -448,6 +451,7 @@ static const int64_t cWORLD_TotalSize = MAX_WORLDBUFFER; // ...it's pretty big for now (!) static const int64_t SnapshotArraySize = sizeof(netmapstate_t) * NET_REVISIONS; +#endif // both the client and server store their current revision number here,