Skip to content

Commit dc656eb

Browse files
committed
Docs: Update dictionary entry for resize-world
1 parent dad4470 commit dc656eb

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

apps/docs/autogen/data/dictionary.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7253,18 +7253,19 @@ entries:
72537253
description: |+
72547254
Changes the size of the patch grid.
72557255
7256-
If the given patch grid coordinates are different than the ones
7257-
in use, all turtles and links die, and the existing patch grid is
7258-
discarded and new patches created. Otherwise, existing turtles
7259-
and links will live if the grid coordinates are unchanged.
7256+
If any coordinate is fractional, it will be rounded to
7257+
the nearest integer towards zero (4.5 becomes 4, 10.9 becomes 10, -2.9 becomes -2).
7258+
7259+
If the new patch grid coordinates are different than the ones
7260+
in use, all turtles and links die, the existing patch grid is
7261+
discarded, new patches created, and the tick counter is cleared.
7262+
However, if the grid coordinates are the same, the world state
7263+
will remain unchanged.
72607264
72617265
Retaining references to old patches or patch sets is inadvisable
72627266
and may subsequently cause runtime errors or other unexpected
72637267
behavior.
72647268
7265-
If any coordinate is fractional, it will be rounded to
7266-
the nearest integer towards zero (4.5 becomes 4, 10.9 becomes 10, -2.9 becomes -2).
7267-
72687269
See also [[set-patch-size|set-patch-size]].
72697270
72707271
examples:

0 commit comments

Comments
 (0)