OpenDream icon indicating copy to clipboard operation
OpenDream copied to clipboard

Fix upward path search operator without lefthand side

Open ike709 opened this issue 1 year ago • 0 comments

The upward path search operator didn't resolve paths correctly specifically when there was nothing on the lefthand side of the operator.

This is because:

/obj/foo
/obj/bar
    var/meep = .foo

would resolve to /obj/.foo instead of /obj/foo

Now we strip the search operator out of the path string if there's nothing on the lefthand side, so it can be combined into the correct path.

The other upward search unit tests confirm that this doesn't break anything when there is a lefthand side. I also confirmed TG didn't explode.

Fixes #617

ike709 avatar Oct 26 '24 20:10 ike709