mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- bugfix: Ira invisible bug in rebel basement
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@652 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -746,7 +746,7 @@ BOOLEAN DeInitAnimationSystem( )
|
||||
if ( gAnimSurfaceDatabase[ cnt1 ].hVideoObject != NULL )
|
||||
{
|
||||
DeleteVideoObject( gAnimSurfaceDatabase[ cnt1 ].hVideoObject );
|
||||
gAnimSurfaceDatabase[ cnt1 ].hVideoObject = NULL;
|
||||
gAnimSurfaceDatabase[ cnt1 ].hVideoObject = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -816,6 +816,12 @@ BOOLEAN LoadAnimationSurface( UINT16 usSoldierID, UINT16 usSurfaceIndex, UINT16
|
||||
{
|
||||
AuxObjectData *pAuxData;
|
||||
|
||||
if (usSurfaceIndex == 251)
|
||||
{
|
||||
int a = 10;
|
||||
a++;
|
||||
}
|
||||
|
||||
// Check for valid surface
|
||||
CHECKF( usSurfaceIndex < NUMANIMATIONSURFACETYPES );
|
||||
|
||||
@@ -935,6 +941,13 @@ BOOLEAN LoadAnimationSurface( UINT16 usSoldierID, UINT16 usSurfaceIndex, UINT16
|
||||
|
||||
BOOLEAN UnLoadAnimationSurface( UINT16 usSoldierID, UINT16 usSurfaceIndex )
|
||||
{
|
||||
|
||||
if (usSurfaceIndex == 251)
|
||||
{
|
||||
int a = 10;
|
||||
a++;
|
||||
}
|
||||
|
||||
// Decrement usage flag, only if this soldier has it currently tagged
|
||||
if ( gbAnimUsageHistory[ usSurfaceIndex ][ usSoldierID ] > 0 )
|
||||
{
|
||||
@@ -960,6 +973,8 @@ BOOLEAN UnLoadAnimationSurface( UINT16 usSoldierID, UINT16 usSurfaceIndex )
|
||||
gAnimSurfaceDatabase[ usSurfaceIndex ].bUsageCount = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Check if count has reached zero and delet if so
|
||||
if ( gAnimSurfaceDatabase[ usSurfaceIndex ].bUsageCount == 0 )
|
||||
|
||||
Reference in New Issue
Block a user