mirror of
https://git.code.sf.net/p/quake/game-source
synced 2024-11-22 03:51:12 +00:00
use |= instead of = for keys
This commit is contained in:
parent
1f0d73a45e
commit
947f50de48
1 changed files with 2 additions and 2 deletions
|
@ -370,7 +370,7 @@ based b_aiflags.
|
|||
keys &= ~KEY_MOVE;
|
||||
else {
|
||||
b_aiflags |= AI_PRECISION;
|
||||
keys = [self keysForDir:v];
|
||||
keys |= [self keysForDir:v];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -714,7 +714,7 @@ generally making the bot look good.
|
|||
keys &= ~KEY_LOOK;
|
||||
|
||||
if (angcomp (b_angle.y, v_angle.y) > 10)
|
||||
keys = KEY_LOOKLEFT;
|
||||
keys |= KEY_LOOKLEFT;
|
||||
else if (angcomp(b_angle.y, v_angle.y) < -10)
|
||||
keys |= KEY_LOOKRIGHT;
|
||||
if (angcomp(b_angle.x, v_angle.x) < -10)
|
||||
|
|
Loading…
Reference in a new issue