Skip to content

Reference to src being replaced when ChangeTurf() is called #15888

Answered by farie82
SteelSlayer asked this question in Code Help
Discussion options

You must be logged in to vote

http://www.byond.com/docs/ref/#/turf
There it suggests that if you new a turf with as param the old one that it will replace the old one.

Turfs cannot be moved. They can only be created or destroyed by changing world.maxx, world.maxy, or world.maxz. When you create a new turf with new(), it always replaces the old one.

You also can't move or new/delete them normally. So it makes sense that byond will reuse the reference

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SteelSlayer
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants