mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
-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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user