From c5275d229c2c3979a48fe0a2057275ca7266e5ee Mon Sep 17 00:00:00 2001 From: MaddMugsy Date: Sat, 10 Jun 2006 20:25:40 +0000 Subject: [PATCH] -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 --- Tactical/bullets.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Tactical/bullets.cpp b/Tactical/bullets.cpp index f291b325..12b78b2a 100644 --- a/Tactical/bullets.cpp +++ b/Tactical/bullets.cpp @@ -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 );