mirror of
https://github.com/ENSL/NS.git
synced 2025-01-31 05:00:53 +00:00
o Fixed bug where +attack with charge selected could cause an infinite charge
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@474 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
5fd78a9011
commit
c8908043ab
2 changed files with 8 additions and 1 deletions
|
@ -1514,6 +1514,7 @@ void CL_ResetButtonBits( int bits )
|
|||
{
|
||||
// totally clear state
|
||||
in_attack.state &= ~7;
|
||||
in_attack2.state &= ~7;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,6 +58,8 @@
|
|||
#include "mod/AvHHud.h"
|
||||
extern int g_runfuncs;
|
||||
void IN_Attack2Down();
|
||||
void IN_Attack2Up();
|
||||
bool CheckInAttack();
|
||||
#endif
|
||||
|
||||
LINK_ENTITY_TO_CLASS(kwLeap, AvHLeap);
|
||||
|
@ -303,7 +305,11 @@ void AvHCharge::SecondaryAttack()
|
|||
void AvHCharge::FireProjectiles(void)
|
||||
{
|
||||
#ifdef AVH_CLIENT
|
||||
IN_Attack2Down();
|
||||
if (CheckInAttack())
|
||||
IN_Attack2Down();
|
||||
else
|
||||
IN_Attack2Up();
|
||||
|
||||
//gHUD.SetAlienAbility(this->GetAbilityImpulse());
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue