mirror of
https://github.com/array-in-a-matrix/brainwine.git
synced 2025-04-02 11:11:58 -04:00
Raynext doesn't need all coordinates in the path!
This commit is contained in:
parent
9aa43e696b
commit
b8894d063e
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ public class Zone {
|
|||
}
|
||||
|
||||
public Vector2i raynext(int x1, int y1, int x2, int y2) {
|
||||
List<Vector2i> path = raycast(x1, y1, x2, y2, true, true, true);
|
||||
List<Vector2i> path = raycast(x1, y1, x2, y2, true, false, true);
|
||||
|
||||
if(path != null && path.size() > 1) {
|
||||
return path.get(1);
|
||||
|
|
Loading…
Add table
Reference in a new issue