From 5c716c569f2a6a097e96a2b1195c4c3da79b6779 Mon Sep 17 00:00:00 2001 From: dhewg Date: Thu, 8 Dec 2011 00:41:44 +0100 Subject: [PATCH] Fix binary op fail in idTarget_WaitForButton::Think --- d3xp/Target.cpp | 2 +- game/Target.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/d3xp/Target.cpp b/d3xp/Target.cpp index b896c42..e07a49f 100644 --- a/d3xp/Target.cpp +++ b/d3xp/Target.cpp @@ -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 ); diff --git a/game/Target.cpp b/game/Target.cpp index 0fef65e..eea47d7 100644 --- a/game/Target.cpp +++ b/game/Target.cpp @@ -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 );