diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-11-04 16:19:54 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-11-04 16:19:54 +0100 |
commit | ad148587dcf5244c2d2011dba339786c765c54c4 (patch) | |
tree | bdd914121cd326da2ed26679838878e3edffc841 /src/pathfinder.h | |
parent | 1145b05ea0bda87dc0827821385810eced08f774 (diff) | |
download | dragonfireclient-ad148587dcf5244c2d2011dba339786c765c54c4.tar.xz |
Make Lint Happy
Diffstat (limited to 'src/pathfinder.h')
-rw-r--r-- | src/pathfinder.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/pathfinder.h b/src/pathfinder.h index 526aa0ee8..f8a463361 100644 --- a/src/pathfinder.h +++ b/src/pathfinder.h @@ -36,7 +36,8 @@ class Map; /* Typedefs and macros */ /******************************************************************************/ -typedef enum { +typedef enum +{ DIR_XP, DIR_XM, DIR_ZP, @@ -44,10 +45,11 @@ typedef enum { } PathDirections; /** List of supported algorithms */ -typedef enum { - PA_DIJKSTRA, /**< Dijkstra shortest path algorithm */ - PA_PLAIN, /**< A* algorithm using heuristics to find a path */ - PA_PLAIN_NP /**< A* algorithm without prefetching of map data */ +typedef enum +{ + PA_DIJKSTRA, /**< Dijkstra shortest path algorithm */ + PA_PLAIN, /**< A* algorithm using heuristics to find a path */ + PA_PLAIN_NP /**< A* algorithm without prefetching of map data */ } PathAlgorithm; /******************************************************************************/ @@ -55,10 +57,6 @@ typedef enum { /******************************************************************************/ /** c wrapper function to use from scriptapi */ -std::vector<v3s16> get_path(Map *map, const NodeDefManager *ndef, - v3s16 source, - v3s16 destination, - unsigned int searchdistance, - unsigned int max_jump, - unsigned int max_drop, - PathAlgorithm algo); +std::vector<v3s16> get_path(Map *map, const NodeDefManager *ndef, v3s16 source, + v3s16 destination, unsigned int searchdistance, unsigned int max_jump, + unsigned int max_drop, PathAlgorithm algo); |