mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Change to SoldierID
This commit is contained in:
@@ -64,7 +64,7 @@ void DeleteAnimationCache( SoldierID usSoldierID, AnimationSurfaceCacheType *pAn
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
BOOLEAN GetCachedAnimationSurface( UINT16 usSoldierID, AnimationSurfaceCacheType *pAnimCache, UINT16 usSurfaceIndex, UINT16 usCurrentAnimation )
|
BOOLEAN GetCachedAnimationSurface( SoldierID usSoldierID, AnimationSurfaceCacheType *pAnimCache, UINT16 usSurfaceIndex, UINT16 usCurrentAnimation )
|
||||||
{
|
{
|
||||||
UINT8 cnt;
|
UINT8 cnt;
|
||||||
UINT8 ubLowestIndex = 0;
|
UINT8 ubLowestIndex = 0;
|
||||||
@@ -89,7 +89,7 @@ BOOLEAN GetCachedAnimationSurface( UINT16 usSoldierID, AnimationSurfaceCacheType
|
|||||||
AnimDebugMsg( String( "Anim Cache: Determining Bump Candidate ( Soldier %d )", usSoldierID ) );
|
AnimDebugMsg( String( "Anim Cache: Determining Bump Candidate ( Soldier %d )", usSoldierID ) );
|
||||||
|
|
||||||
// Determine exisiting surface used by merc
|
// Determine exisiting surface used by merc
|
||||||
usCurrentAnimSurface = DetermineSoldierAnimationSurface( MercPtrs[ usSoldierID ], usCurrentAnimation );
|
usCurrentAnimSurface = DetermineSoldierAnimationSurface( usSoldierID, usCurrentAnimation );
|
||||||
// If the surface we are going to bump is our existing animation, reject it as a candidate
|
// If the surface we are going to bump is our existing animation, reject it as a candidate
|
||||||
|
|
||||||
// If we get here, we need to remove an animation, pick the best one
|
// If we get here, we need to remove an animation, pick the best one
|
||||||
@@ -142,7 +142,7 @@ BOOLEAN GetCachedAnimationSurface( UINT16 usSoldierID, AnimationSurfaceCacheType
|
|||||||
}
|
}
|
||||||
|
|
||||||
return( TRUE );
|
return( TRUE );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ typedef struct
|
|||||||
|
|
||||||
extern UINT32 guiCacheSize;
|
extern UINT32 guiCacheSize;
|
||||||
|
|
||||||
BOOLEAN GetCachedAnimationSurface( UINT16 usSoldierID, AnimationSurfaceCacheType *pAnimCache, UINT16 usSurfaceIndex, UINT16 usCurrentAnimation );
|
BOOLEAN GetCachedAnimationSurface( SoldierID usSoldierID, AnimationSurfaceCacheType *pAnimCache, UINT16 usSurfaceIndex, UINT16 usCurrentAnimation );
|
||||||
BOOLEAN InitAnimationCache( SoldierID usSoldierID, AnimationSurfaceCacheType *pAnimCache );
|
BOOLEAN InitAnimationCache( SoldierID usSoldierID, AnimationSurfaceCacheType *pAnimCache );
|
||||||
void DeleteAnimationCache( SoldierID usSoldierID, AnimationSurfaceCacheType *pAnimCache );
|
void DeleteAnimationCache( SoldierID usSoldierID, AnimationSurfaceCacheType *pAnimCache );
|
||||||
void DetermineOptimumAnimationCacheSize( );
|
void DetermineOptimumAnimationCacheSize( );
|
||||||
|
|||||||
Reference in New Issue
Block a user