mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-24 05:13:11 +08:00
Format code [skip actions]
This commit is contained in:
parent
818b638bed
commit
7845c54570
@ -57,8 +57,7 @@ public class SceneRegion {
|
|||||||
val x1 = point_array.get(i).getX();
|
val x1 = point_array.get(i).getX();
|
||||||
val x2 = point_array.get(j).getX();
|
val x2 = point_array.get(j).getX();
|
||||||
|
|
||||||
if ((yp < y1) != (yp < y2)
|
if ((yp < y1) != (yp < y2) && xp < x1 + ((yp - y1) / (y2 - y1)) * (x2 - x1)) {
|
||||||
&& xp < x1 + ((yp - y1) / (y2 - y1)) * (x2 - x1)) {
|
|
||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user