mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-25 21:31:28 +00:00
Server: Restore check if the goalentity is the world.
Despite the comment left, this is holding our broken pathfinding together.
This commit is contained in:
parent
c7f5e02130
commit
c8c57f25f7
1 changed files with 3 additions and 3 deletions
|
@ -671,9 +671,9 @@ void(float dist) Inside_Walk = {
|
|||
self.chase_time = 0;
|
||||
}
|
||||
//============= No Target ====================
|
||||
//if(self.goalentity == world) {//not sure when this would ever occur... but whatever.
|
||||
// self.goalentity = self.goaldummy;
|
||||
//}
|
||||
if(self.goalentity == world) {//not sure when this would ever occur... but whatever.
|
||||
self.goalentity = self.goaldummy;
|
||||
}
|
||||
//============ GoalDummy is Target ============
|
||||
if(self.goalentity == self.goaldummy) {
|
||||
if(nearby(self.goaldummy.origin)) {
|
||||
|
|
Loading…
Reference in a new issue