v0.7.0: fixed an error with new rounded magical sight logic
This commit is contained in:
@@ -886,7 +886,7 @@ public abstract class Level implements Bundlable {
|
||||
right = Math.min(width()-1, cx + cx - left);
|
||||
left = Math.max(0, left);
|
||||
pos = left + y * width();
|
||||
System.arraycopy(discoverable, pos, fieldOfView, pos, right - left);
|
||||
System.arraycopy(discoverable, pos, fieldOfView, pos, right - left + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user