mirror of
https://github.com/pim-n/pg-rad
synced 2026-04-24 17:58:11 +02:00
include landscape edges
This commit is contained in:
@ -150,8 +150,8 @@ class LandscapeBuilder:
|
||||
# the path is centered in the y direction.
|
||||
print(pos)
|
||||
if not (
|
||||
(0 < pos[0] < self._size[0]) and
|
||||
(-0.5 * self._size[1] < pos[1] < 0.5 * self._size[1])
|
||||
(0 <= pos[0] <= self._size[0]) and
|
||||
(-0.5 * self._size[1] <= pos[1] <= 0.5 * self._size[1])
|
||||
):
|
||||
raise OutOfBoundsError(
|
||||
"One or more sources attempted to "
|
||||
|
||||
Reference in New Issue
Block a user