RoomPosition.lookFor("flag") is broken



  • Run this line in Console several times and get different results:

    > new RoomPosition(32, 40, "W12S28").lookFor("flag")
    < [flag Flag24]
    new RoomPosition(32, 40, "W12S28").lookFor("flag")
    <
    

    I have the flag Flag24 ontop of the link in this position. But sometimes (~ once every 5-10 ticks) lookFor cant find it.



  • This is a recent brake, this was working 1-2 days ago. Now all my code is broken that references flags and my creeps miss flags I'm using as landmarks.



  • The vast majority of the time, like xoposhiy says, it does work but every once in a while the look fails.



  • This brings up a flaw in the API that there is no difference between a failed look-up and a search that turns up empty.