BYOND Version: 10 BETA
Operating System: Windows XP Home
Web Browser: Firefox
Game/Hub(s): N/A
Descriptive Problem Summary:
Now I'm not sure if this is really a problem, though you should definitely include more detail into this. I was wondering why my get_step() list never contained any mobs and only objects. The code I used was this:
var/obj/Walls/o
for(o in get_step(m,m.dir))
world<<"[o]"
So then I changed o's type to an atom and it worked. So does this mean that when searching through lists, the for command relies on the variables type?
Numbered Steps to Reproduce Problem:
As above.
Code Snippet (if applicable) to Reproduce Problem:
world<<"Test 1"
var/obj/o
for(o in list(new /obj(),new /mob()))
world<<"[o]"
world<<"Test 2"
var/atom/o
for(o in list(new /obj(),new /mob()))
world<<"[o]"
Expected Results:
Test 1
obj
mob
Test2
obj
mob
Actual Results:
Test 1
obj
Test2
obj
mob
Does the problem occur:
Every time? Or how often? This is the first time I found it
In other games? Probably
On other computers? Yes
In other user accounts? Yes