-got rid of the slow allteamslookforall and reoptimized tracer looking to use ManLooksForOtherTeams instead

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@219 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
MaddMugsy
2006-06-10 20:25:40 +00:00
parent ac420d7f24
commit c5275d229c
+5 -6
View File
@@ -194,11 +194,6 @@ void RemoveBullet( INT32 iBullet )
gBullets[ iBullet ].pShadowAniTile = NULL;
}
}
if ( gBullets[ iBullet ].usFlags & ( BULLET_FLAG_TRACER ) )
{
AllTeamsLookForAll(TRUE);
}
}
}
else
@@ -304,9 +299,13 @@ void UpdateBullets( )
}
}
// Are we a missle?
else if ( gBullets[ uiCount ].usFlags & ( BULLET_FLAG_MISSILE | BULLET_FLAG_SMALL_MISSILE | BULLET_FLAG_TANK_CANNON | BULLET_FLAG_FLAME | BULLET_FLAG_CREATURE_SPIT | BULLET_FLAG_TRACER ) )
else if ( gBullets[ uiCount ].usFlags & ( BULLET_FLAG_MISSILE | BULLET_FLAG_SMALL_MISSILE | BULLET_FLAG_TANK_CANNON | BULLET_FLAG_FLAME | BULLET_FLAG_CREATURE_SPIT ) )
{
}
else if ( gBullets[ uiCount ].usFlags & ( BULLET_FLAG_TRACER ) )
{
ManLooksForOtherTeams(gBullets[ uiCount ].pFirer);
}
else
{
pNode = AddStructToTail( gBullets[ uiCount ].sGridNo, BULLETTILE1 );