File tree Expand file tree Collapse file tree 2 files changed +1
-31
lines changed Expand file tree Collapse file tree 2 files changed +1
-31
lines changed Original file line number Diff line number Diff line change @@ -776,25 +776,3 @@ const SString & CAnimManagerSA::GetGateWayAnimationName ( void )
776776 return m_kGateWayAnimationName;
777777}
778778
779- void CAnimManagerSA::InsertPedPointerToMap ( RpClump * pClump, CClientPed * pClientPed )
780- {
781- if ( m_mapOfPedPointers.count ( pClump ) == 0 )
782- {
783- m_mapOfPedPointers [ pClump ] = pClientPed;
784- }
785- }
786-
787- void CAnimManagerSA::RemovePedPointerFromMap ( RpClump * pClump )
788- {
789- m_mapOfPedPointers.erase ( pClump );
790- }
791-
792- CClientPed * CAnimManagerSA::GetPedPointerFromMap ( RpClump * pClump )
793- {
794- ClumpMap_type::iterator it = m_mapOfPedPointers.find ( pClump );
795- if ( it != m_mapOfPedPointers.end ( ) )
796- {
797- return it->second ;
798- }
799- return nullptr ;
800- }
Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ class CAnimManagerSAInterface
8080class CAnimManagerSA : public CAnimManager
8181{
8282 typedef CAnimBlendStaticAssociationSAInterface * StaticAssocIntface_type;
83- typedef std::map < RpClump *, CClientPed * > ClumpMap_type;
8483
8584public:
8685 CAnimManagerSA ( void );
@@ -155,18 +154,11 @@ class CAnimManagerSA : public CAnimManager
155154 const SString & GetGateWayBlockName ( void );
156155 const SString & GetGateWayAnimationName ( void );
157156
158- // This is used in AddAnimationHandler and AddAnimationAndSyncHandler for playing
159- // custom animations and to help in replacing and restoring animations
160- void InsertPedPointerToMap ( RpClump * pClump, CClientPed * pClientPed );
161- void RemovePedPointerFromMap ( RpClump * pClump );
162- CClientPed * GetPedPointerFromMap ( RpClump * pClump );
163-
164157private:
165158 CAnimBlendAssocGroup * m_pAnimAssocGroups [ MAX_ANIM_GROUPS ];
166159 CAnimBlendHierarchy * m_pAnimations [ MAX_ANIMATIONS ];
167160 CAnimBlock * m_pAnimBlocks [ MAX_ANIM_BLOCKS ];
168- std::list < CAnimBlendAssociation * > m_Associations;
169- ClumpMap_type m_mapOfPedPointers;
161+ std::list < CAnimBlendAssociation * > m_Associations;
170162
171163 // This "gateway" animation will allow us to play custom animations by simply playing this animation
172164 // and then in AddAnimation and AddAnimationAndSync hook, we can return our custom animation in the
You can’t perform that action at this time.
0 commit comments