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:
@@ -1344,8 +1344,11 @@ INT32 HandleItem( SOLDIERTYPE *pSoldier, INT32 sGridNo, INT8 bLevel, UINT16 usHa
|
||||
}
|
||||
|
||||
// Flugente: handcuffing people
|
||||
if ( gGameExternalOptions.fAllowPrisonerSystem && HasItemFlag( usHandItem, HANDCUFFS ) && pTargetSoldier && pTargetSoldier->CanBeCaptured( ) )
|
||||
if (gGameExternalOptions.fAllowPrisonerSystem && HasItemFlag(usHandItem, HANDCUFFS) && pTargetSoldier)
|
||||
{
|
||||
if (!pTargetSoldier->CanBeCaptured())
|
||||
return ITEM_HANDLE_REFUSAL;
|
||||
|
||||
// ATE: AI CANNOT GO THROUGH HERE!
|
||||
BOOLEAN fHadToUseCursorPos = FALSE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user