mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 03:58:14 +03:00
Fixed infinite loop with ai_debugpath
This commit is contained in:
parent
b996918d3b
commit
5cffe3fb05
1 changed files with 2 additions and 3 deletions
|
@ -5273,10 +5273,9 @@ void Actor::MovePath(float fMoveSpeed)
|
|||
|
||||
G_DebugLine(pos, dest, 1, 0, 0, 1);
|
||||
|
||||
for (current_path = m_Path.CurrentNode(); current_path != m_Path.LastNode(); current_path = m_Path.NextNode()) {
|
||||
for (current_path = m_Path.CurrentNode(); current_path != m_Path.LastNode(); current_path--) {
|
||||
pos = current_path->point;
|
||||
current_path--;
|
||||
dest = current_path->point;
|
||||
dest = (current_path - 1)->point;
|
||||
|
||||
G_DebugLine(pos + Vector(0, 0, 32), dest + Vector(0, 0, 32), 0, 1, 0, 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue