mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix: after firing an underbarrel GL, it was possible to reload via leftclick for a short time, leading to reload of main gun with a grenade
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8235 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1942,6 +1942,15 @@ UINT8 HandleNonActivatedTossCursor( SOLDIERTYPE *pSoldier, INT32 sGridNo, BOOLEA
|
||||
|
||||
if ( !EnoughAmmo( pSoldier, FALSE, HANDPOS ) )
|
||||
{
|
||||
// Flugente: if we are using an underbarrel GL, we aren't even supposed to be able to reload via leftclick here
|
||||
// recalculate the correct firing mode and be done
|
||||
if ( (pSoldier->bWeaponMode == WM_ATTACHED_GL || pSoldier->bWeaponMode == WM_ATTACHED_GL_BURST || pSoldier->bWeaponMode == WM_ATTACHED_GL_AUTO) && IsGrenadeLauncherAttached( &(pSoldier->inv[HANDPOS]) ) )
|
||||
{
|
||||
ChangeWeaponMode( pSoldier );
|
||||
|
||||
return(BAD_RELOAD_UICURSOR);
|
||||
}
|
||||
|
||||
// Check if ANY ammo exists.....
|
||||
if ( FindAmmoToReload( pSoldier, HANDPOS, NO_SLOT ) == NO_SLOT )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user