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