Calling view() also includes atoms in the src/usr.
Numbered Steps to Reproduce Problem:
Add objs to the usr contents and run.
for(var/obj/I in view(1, usr))
world << "[I.loc]"
Code Snippet (if applicable) to Reproduce Problem:
mob/verb
Test()
usr.contents = newlist(/obj,/obj,/obj,/obj)
for(var/obj/I in view(1, usr))
world << "[I.loc]"
Expected Results:
Should not include the atoms in the usr when using view().
Actual Results:
Includes all the atoms in user.
Does the problem occur:
Every time? Or how often?
Every time
In other games?
Not sure.
In other user accounts?
Yes
On other computers?
Not sure.
When does the problem NOT occur?
Roll back byond version
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Workarounds:
Add !(atom in usr) to bypass the check.