Core: Add continue keyword
This commit is contained in:
@@ -197,14 +197,11 @@ MAP_PathFindStep :: (s: *MAP_Actor, compute_history: bool = true): bool
|
||||
Add(&s.close_paths, it)
|
||||
|
||||
|
||||
// @language_todo: Add continue keyword
|
||||
// if x == 0 && y == 0 ;; continue
|
||||
|
||||
for y := -1, y <= 1, y += 1
|
||||
for x := -1, x <= 1, x += 1
|
||||
if (x == 0 && y == 0) == false
|
||||
p := V2I{it.p.x + x, it.p.y + y}
|
||||
MAP_InsertOpenPath(s, p, it.p)
|
||||
if x == 0 && y == 0 ;; continue
|
||||
p := V2I{it.p.x + x, it.p.y + y}
|
||||
MAP_InsertOpenPath(s, p, it.p)
|
||||
|
||||
if compute_history ;; MAP_RecomputeHistory(s)
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user