Skip to content

Commit 98ccb35

Browse files
committed
Removed unsed GetClientPedByClump from CClientEntity
1 parent 66b9cd1 commit 98ccb35

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

Client/mods/deathmatch/logic/CClientEntity.cpp

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,43 +1490,6 @@ void CClientEntity::GetEntitiesFromRoot ( unsigned int uiTypeHash, lua_State* lu
14901490
}
14911491
}
14921492

1493-
CClientPed * CClientEntity::GetClientPedByClump ( const RpClump & Clump )
1494-
{
1495-
SString arrstrEntityTypes [2] = { "player", "ped" };
1496-
1497-
for ( size_t uiTypeIndex = 0;
1498-
uiTypeIndex < sizeof ( arrstrEntityTypes);
1499-
uiTypeIndex ++ )
1500-
{
1501-
unsigned int uiTypeHash = HashString ( arrstrEntityTypes [ uiTypeIndex ].c_str ( ) );
1502-
1503-
t_mapEntitiesFromRoot::iterator find = ms_mapEntitiesFromRoot.find ( uiTypeHash );
1504-
if ( find != ms_mapEntitiesFromRoot.end () )
1505-
{
1506-
CFromRootListType& listEntities = find->second;
1507-
CClientEntity* pEntity;
1508-
unsigned int uiIndex = 0;
1509-
1510-
for ( CFromRootListType::reverse_iterator i = listEntities.rbegin ();
1511-
i != listEntities.rend ();
1512-
++i )
1513-
{
1514-
pEntity = *i;
1515-
1516-
if ( !pEntity->IsBeingDeleted ( ) )
1517-
{
1518-
const RpClump & entityClump = *pEntity->GetClump ();
1519-
if ( std::addressof ( entityClump ) == std::addressof ( Clump ) )
1520-
{
1521-
return static_cast < CClientPed * > ( pEntity );
1522-
}
1523-
}
1524-
}
1525-
}
1526-
}
1527-
return nullptr;
1528-
}
1529-
15301493
#if CHECK_ENTITIES_FROM_ROOT
15311494

15321495
//

Client/mods/deathmatch/logic/CClientEntity.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,6 @@ class CClientEntity : public CClientEntityBase
326326
bool IsCallPropagationEnabled ( void ) { return m_bCallPropagationEnabled; }
327327
virtual void SetCallPropagationEnabled ( bool bEnabled ) { m_bCallPropagationEnabled = bEnabled; }
328328

329-
CClientPed * GetClientPedByClump ( const RpClump & Clump );
330-
331329
protected:
332330
CClientManager* m_pManager;
333331
CClientEntity* m_pParent;

0 commit comments

Comments
 (0)