mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
- Fix: crash when switching to bayonet while aimed
- Fix: batteries were drained for inactive flashlights git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6067 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1628,6 +1628,10 @@ UINT8 HandleKnifeCursor( SOLDIERTYPE *pSoldier, INT32 sGridNo, BOOLEAN fActivate
|
||||
// DRAW PATH TO GUY
|
||||
HandleUIMovementCursor( pSoldier, uiCursorFlags, sGridNo, MOVEUI_TARGET_MERCS );
|
||||
|
||||
// Flugente: if we are using a bayonet, adjust aimtime
|
||||
if ( pSoldier->bWeaponMode == WM_ATTACHED_BAYONET && pSoldier->aiData.bShownAimTime != REFINE_KNIFE_1 )
|
||||
pSoldier->aiData.bShownAimTime = REFINE_KNIFE_2;
|
||||
|
||||
if ( fActivated )
|
||||
{
|
||||
DetermineCursorBodyLocation( pSoldier->ubID, TRUE, TRUE );
|
||||
|
||||
Reference in New Issue
Block a user