Numbered Steps to Reproduce Problem:Use any code that uses view() or oview()
Code Snippet (if applicable) to Reproduce Problem:
mob
verb
Test_View()
world<<"Your location is [x], [y]"
for(var/turf/a in oview())
src<<"[a.x], [a.y] is in oview()"
Expected Results:Not to see it say the same location as yours for the in oview() test.
Actual Results:It lists all turfs in view() including the one at your location.
Does the problem occur:
Every time? Or how often?Every Time
In other games?Yes
In other user accounts?Yes
On other computers?Yes
When does the problem NOT occur?Always
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:Filter out items manually using a for() loop like that...instead of using view()<< or oview()<<
Superbike32 wrote:
Just as you said, the reference says oview() excludes Center--the point of reference, which is usr by default--and its contents from the result. It does not say it excludes Center.loc.
Exactly as the reference promises, oview(usr) excludes usr and usr.contents only. usr.loc and any other objects in it will be included in the results.