mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Implemented some of the merc05's fixes (http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=24256):
- fix for stopping snitches from preventing misbehavior - fix for stopping snitches reports - improved code for refused handcuffing - fixed item bug with items dropping from backpack after using transformation in turnbased mode - improved code for dart ammotype effect - removed assert in AddCharacterToAnySquad to prevent crash when selecting merc in vehicle and plotting travel route - added EXPLOSV_CREATUREGAS effect in UpdateAniTiles() git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8720 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -7279,23 +7279,22 @@ void NoticeUnseenAttacker( SOLDIERTYPE * pAttacker, SOLDIERTYPE * pDefender, INT
|
||||
INT8 bDirection;
|
||||
BOOLEAN fMuzzleFlash = FALSE;
|
||||
|
||||
if ( !(gTacticalStatus.uiFlags & INCOMBAT) )
|
||||
if (!(gTacticalStatus.uiFlags & INCOMBAT))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ( pAttacker->usAttackingWeapon == DART_GUN )
|
||||
if (AmmoTypes[pAttacker->inv[pAttacker->ubAttackingHand][0]->data.gun.ubGunAmmoType].dart)
|
||||
{
|
||||
// rarely noticed
|
||||
if ( SkillCheck( pDefender, NOTICE_DART_CHECK, 0 ) < 0)
|
||||
if (SkillCheck(pDefender, NOTICE_DART_CHECK, 0) < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// do we need to do checks for life/breath here?
|
||||
|
||||
if ( pDefender->ubBodyType == LARVAE_MONSTER || (pDefender->flags.uiStatusFlags & SOLDIER_VEHICLE && pDefender->bTeam == OUR_TEAM) )
|
||||
if (pDefender->ubBodyType == LARVAE_MONSTER || (pDefender->flags.uiStatusFlags & SOLDIER_VEHICLE && pDefender->bTeam == OUR_TEAM))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user