mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-25 05:51:15 +00:00
Fix binary op fail in idTarget_WaitForButton::Think
This commit is contained in:
parent
8585be83f9
commit
5c716c569f
2 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue