- Enabled some useful Assert-Messages, so we get notifications about errors in DEBUG Mode.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@330 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2006-07-06 05:47:28 +00:00
parent 69c3fc9a06
commit 36db236079
9 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -1459,7 +1459,7 @@ UINT8 GetDealerItemCategoryNumber( UINT16 usItemIndex )
// WANNE: commented the assert out, because we always get the assertion in debug mode!
// should never be trying to locate an item that's not covered in the table!
//Assert( FALSE );
Assert( FALSE );
return( 0 );
}
+2 -2
View File
@@ -65,8 +65,8 @@ void StatChange(SOLDIERTYPE *pSoldier, UINT8 ubStat, UINT16 usNumChances, UINT8
if (pSoldier == NULL || pSoldier->bActive == FALSE)
return; // THIS SHOULD NEVER HAPPEN
//Assert(pSoldier != NULL);
//Assert(pSoldier->bActive);
Assert(pSoldier != NULL);
Assert(pSoldier->bActive);
// ignore non-player soldiers
if (!PTR_OURTEAM)
+1 -1
View File
@@ -2638,7 +2638,7 @@ UINT16 SelectStandardArmyGun( UINT8 uiGunLevel )
}
//Assert(usGunIndex);
Assert(usGunIndex);
return(usGunIndex);
}