Pathfinding algorithm start. Currently freezes in pathfinding loop
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
+1
-1
@@ -309,7 +309,7 @@ bool Wizard::RightClickAbility(){
|
||||
dist--;
|
||||
teleportPoint=p.GetPos()+pointTowardsMouse*dist;
|
||||
}
|
||||
if(dist>0){
|
||||
if(dist>0&&p.CanPathfindTo(p.GetPos(),teleportPoint)){
|
||||
p.SetState(State::TELEPORT);
|
||||
p.teleportAnimationTimer=0.35;
|
||||
p.teleportTarget=teleportPoint;
|
||||
|
||||
Reference in New Issue
Block a user