ID:75161
 
Not a bug
Not a bug
BYOND Version:442
Operating System:Windows XP Home
Web Browser:Chrome 2.0.172.33
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:

Numbered Steps to Reproduce Problem:
Take this code:
mob/proc/Test()
for(var/turf/T in get_step(src,dir))
src<<"[T.name]"

Make some test environment, a map, with some turfs, and you, run the game, hit test while a turf is in front of you, nothing happens even though it probably should.

Code Snippet (if applicable) to Reproduce Problem:
//This does not work
mob/proc/Test()
for(var/turf/T in get_step(src,dir))
src<<"[T.name]"
//These do work
mob/proc/Test()
for(var/mob/T in get_step(src,dir))
src<<"[T.name]"
mob/proc/Test()
for(var/obj/T in get_step(src,dir))
src<<"[T.name]"


Expected Results:
The turf in get_step(src,dir) is located.

Actual Results:
It is not located

Does the problem occur:
Every time? Or how often? All the time
In other games? I dont know
In other user accounts? Yes
On other computers? I dont know

When does the problem NOT occur?
Never

Workarounds:
None relevant
You're looking for a turf in the turf, that's not going to work. Get step returns the turf of whatever direction you're checking in.