Unless there is no other way than walk through a surface covered in fire, ooze or poison, the characters will always find the shortest safe way around.