I been trying to make a PHP path finder from examples in other languages and tweaked it for my game’s need but its not returning any values.
I should note – I get no errors in my error log file either so I’m guessing its a logic mistake?
Hope some one can spot it cos i cannot see the mistake =/
Just took a really short look, but:
in_arraychecks the array values, not the keys… as such, your whole function doesn’t even do anything. Usearray_key_existsfor this.