Closed qiemem closed 8 years ago
There's already a failing test for this: https://github.com/NetLogo/NW-Extension/blob/af307ea7d864f897f71e26906d605a71c6e972d3/tests.txt#L103
From the console:
observer> crt 2 [ create-links-with other turtles ] observer> show [ nw:distance-to one-of other turtles ] of turtles observer: [1 1] observer> resize-world -1 1 -1 1 -1 1 observer> crt 2 [ create-links-with other turtles ] observer> show [ nw:distance-to one-of other turtles ] of turtles observer: [false false]
Strangely:
observer> show [ nw:turtles-in-radius 1 ] of turtles observer: [(agentset, 1 turtle) (agentset, 1 turtle)]
Looks like the context isn't get reset on the resize.
This happens in 2d as well.
There's already a failing test for this: https://github.com/NetLogo/NW-Extension/blob/af307ea7d864f897f71e26906d605a71c6e972d3/tests.txt#L103
From the console:
Strangely: