From 19fef1890cab6dd8c47398c6fbd0c0f8a8e3e1c5 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 31 Aug 2003 07:11:04 +0000 Subject: [PATCH] get -preThink called and call -AI at the right time. things slowly getting better --- fbxa/bot_qw.qc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fbxa/bot_qw.qc b/fbxa/bot_qw.qc index 5dc3849..dc47a30 100644 --- a/fbxa/bot_qw.qc +++ b/fbxa/bot_qw.qc @@ -406,8 +406,6 @@ void(Waypoint e1, Waypoint e2, integer flag) DeveloperLightning = {}; - (void) preThink { - local entity uself; - if (switch_wallhug) ClientFixRankings (); if (b_frags != ent.frags) { @@ -421,11 +419,6 @@ void(Waypoint e1, Waypoint e2, integer flag) DeveloperLightning = {}; b_frags = ent.frags; } [self dynamicWaypoint]; - - uself = @self; - @self = ent; - PlayerPreThink (); - @self = uself; } - (void) postThink @@ -455,8 +448,9 @@ void(Waypoint e1, Waypoint e2, integer flag) DeveloperLightning = {}; -(void)frame { [self obstacles]; - [self AI]; + [self preThink]; [self sendMove]; + [self AI]; } -(void) updateClient