* Unmarks the tiles used for the path preview. * @return True, if the previewed path was removed. */
| 925 | * @return True, if the previewed path was removed. |
| 926 | */ |
| 927 | bool 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. |
no outgoing calls
no test coverage detected