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:
Steam Deck User 2022-12-27 13:06:37 -05:00
parent c7f5e02130
commit c8c57f25f7

View file

@ -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)) {