Remove a pointless travel_pathfind::pathfind() call.
authorAliscans <crawl@thimk.info>
Mon, 15 Feb 2021 21:22:15 +0000 (21:22 +0000)
committerEdgar A. Bering IV <trizor@gmail.com>
Tue, 16 Feb 2021 17:56:53 +0000 (19:56 +0200)
commit76aa1ed959e1b55b6ec45850b4de01cd2143ad82
tree023a0e3a6a3eba0dae720f5942739f586e8a348b
parenta84d769ad4c7ea65c60a52f656f8c2ea562083f5
Remove a pointless travel_pathfind::pathfind() call.

pathfind() always returns (0,0) without a target, so fill_travel_point_distance() no longer checks this.

pathfind() clears travel_point_distance as it starts, so fill_travel_point_distance() no longer calls it twice if features hasn't been provided.

It changes the order of *features, so I still call it twice if it is set.
crawl-ref/source/travel.cc