I've got an implementation in java of Douglas Demyen Modified Funnel Algorithm pseudo code in my game but for some unknown reason, sometimes the path goes outside the channel.
TileChannel
FunnelModified
Does anyone see where is my mistake?
Thanks in advance,






