- Added missing #ifdef ENABLE_ZOMBIES for zombie exclusive code (by Jazz)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6672 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2013-12-01 19:17:52 +00:00
parent 9a67e804c6
commit 38be6a389b
+4
View File
@@ -1715,12 +1715,16 @@ void StartEnemyTaunt( SOLDIERTYPE *pCiv, TAUNTTYPE iTauntType, SOLDIERTYPE *pTar
// target limitations
if( pTarget != NULL )
{
#ifdef ENABLE_ZOMBIES
// target should be zombie
if( zTaunt[ i ].uiFlags2 & TAUNT_T_ZOMBIE )
{
if( pTarget->IsZombie() == FALSE )
continue;
}
#endif
// target merc profile
if( zTaunt[ i ].value[TAUNT_TARGET_MERC_PROFILE] != -1 )
{