From 947f50de48154811e104b67e04e2cdbc8d66b171 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 21 Aug 2003 04:57:25 +0000 Subject: [PATCH] use |= instead of = for keys --- fbxa/bot_ai.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fbxa/bot_ai.qc b/fbxa/bot_ai.qc index 1b711c3..f63dd1f 100644 --- a/fbxa/bot_ai.qc +++ b/fbxa/bot_ai.qc @@ -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)