diff options
author | shennetsind <ind@henn.et> | 2013-09-16 12:17:17 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-09-16 12:17:17 -0300 |
commit | 7f933ea6cb66e4deb2dc53c7aa3a96d82cb2884d (patch) | |
tree | 99d467fe5f3d87428fea8cf642e3b7e1307cb7c7 /src/map/path.c | |
parent | a1bdf6b04263653699c3ea0ec428aadb7b297fec (diff) | |
download | hercules-7f933ea6cb66e4deb2dc53c7aa3a96d82cb2884d.tar.gz hercules-7f933ea6cb66e4deb2dc53c7aa3a96d82cb2884d.tar.bz2 hercules-7f933ea6cb66e4deb2dc53c7aa3a96d82cb2884d.tar.xz hercules-7f933ea6cb66e4deb2dc53c7aa3a96d82cb2884d.zip |
HPM: Path.c Interface
Fully Integrated
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/path.c')
-rw-r--r-- | src/map/path.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/map/path.c b/src/map/path.c index 32a4189bb..2de3eab00 100644 --- a/src/map/path.c +++ b/src/map/path.c @@ -1,5 +1,6 @@ -// Copyright (c) Athena Dev Teams - Licensed under GNU GPL -// For more information, see LICENCE in the main folder +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// Portions Copyright (c) Athena Dev Teams #include "../common/cbasetypes.h" #include "../common/db.h" @@ -23,6 +24,8 @@ #define DIR_SOUTH 4 #define DIR_EAST 8 +struct path_interface path_s; + /// @name Structures and defines for A* pathfinding /// @{ @@ -458,3 +461,12 @@ unsigned int distance(int dx, int dy) return (dx<dy?dy:dx); #endif } +void path_defaults(void) { + path = &path_s; + + path->blownpos = path_blownpos; + path->search_long = path_search_long; + path->search = path_search; + path->check_distance = check_distance; + path->distance = distance; +} |