- 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:
Wanne
2006-12-31 12:06:35 +00:00
parent 6049d1dda5
commit 7a1987665d
6 changed files with 37 additions and 8 deletions
+16 -1
View File
@@ -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 )