mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2024-11-21 19:31:14 +00:00
weapon_slam.cpp: fixed being unable to detonate the satchel when holding a detonator (i.e. having a satchel in the world) and ready tripmine in hands.
This commit is contained in:
parent
0d8dceea43
commit
19f3e2ca0f
1 changed files with 2 additions and 2 deletions
|
@ -303,7 +303,7 @@ bool CWeapon_SLAM::AnyUndetonatedCharges(void)
|
||||||
void CWeapon_SLAM::StartSatchelDetonate()
|
void CWeapon_SLAM::StartSatchelDetonate()
|
||||||
{
|
{
|
||||||
|
|
||||||
if ( GetActivity() != ACT_SLAM_DETONATOR_IDLE && GetActivity() != ACT_SLAM_THROW_IDLE )
|
if ( GetActivity() != ACT_SLAM_DETONATOR_IDLE && GetActivity() != ACT_SLAM_THROW_IDLE && !m_bDetonatorArmed ) //fix for being unable to detonate when holding a detonator and ready tripmine in hand
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// -----------------------------------------
|
// -----------------------------------------
|
||||||
|
@ -313,7 +313,7 @@ void CWeapon_SLAM::StartSatchelDetonate()
|
||||||
{
|
{
|
||||||
SendWeaponAnim(ACT_SLAM_DETONATOR_DETONATE);
|
SendWeaponAnim(ACT_SLAM_DETONATOR_DETONATE);
|
||||||
}
|
}
|
||||||
else if (m_tSlamState == SLAM_SATCHEL_ATTACH)
|
else if (m_tSlamState == SLAM_SATCHEL_ATTACH || m_tSlamState == SLAM_TRIPMINE_READY) // second part of the aforementioned fix
|
||||||
{
|
{
|
||||||
SendWeaponAnim(ACT_SLAM_STICKWALL_DETONATE);
|
SendWeaponAnim(ACT_SLAM_STICKWALL_DETONATE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue