MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / removePreview

Method removePreview

src/Battlescape/Pathfinding.cpp:927–933  ·  view source on GitHub ↗

* Unmarks the tiles used for the path preview. * @return True, if the previewed path was removed. */

Source from the content-addressed store, hash-verified

925 * @return True, if the previewed path was removed.
926 */
927bool Pathfinding::removePreview()
928{
929 if (!_pathPreviewed)
930 return false;
931 previewPath(true);
932 return true;
933}
934
935/**
936 * Calculates the shortest path using Brensenham path algorithm.

Callers 7

cancelCurrentActionMethod · 0.80
primaryActionMethod · 0.80
btnKneelClickMethod · 0.80
btnInventoryClickMethod · 0.80
btnReserveClickMethod · 0.80
btnReserveKneelClickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected