Fix binary op fail in idTarget_WaitForButton::Think

This commit is contained in:
dhewg 2011-12-08 00:41:44 +01:00 committed by Daniel Gibson
parent 8585be83f9
commit 5c716c569f
2 changed files with 2 additions and 2 deletions

View file

@ -254,7 +254,7 @@ void idTarget_WaitForButton::Think( void ) {
if ( thinkFlags & TH_THINK ) {
player = gameLocal.GetLocalPlayer();
if ( player && ( !player->oldButtons & BUTTON_ATTACK ) && ( player->usercmd.buttons & BUTTON_ATTACK ) ) {
if ( player && !( player->oldButtons & BUTTON_ATTACK ) && ( player->usercmd.buttons & BUTTON_ATTACK ) ) {
player->usercmd.buttons &= ~BUTTON_ATTACK;
BecomeInactive( TH_THINK );
ActivateTargets( player );

View file

@ -254,7 +254,7 @@ void idTarget_WaitForButton::Think( void ) {
if ( thinkFlags & TH_THINK ) {
player = gameLocal.GetLocalPlayer();
if ( player && ( !player->oldButtons & BUTTON_ATTACK ) && ( player->usercmd.buttons & BUTTON_ATTACK ) ) {
if ( player && !( player->oldButtons & BUTTON_ATTACK ) && ( player->usercmd.buttons & BUTTON_ATTACK ) ) {
player->usercmd.buttons &= ~BUTTON_ATTACK;
BecomeInactive( TH_THINK );
ActivateTargets( player );