From 291f6490c65bd88067db472a915b4ea29cc5741a Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 1 Dec 2009 23:22:41 +0000 Subject: (svn r18366) -Codechange: move the OPF ship pathfinder 'magic' that was in ship_cmd.cpp to the pathfinder code itself --- src/pathfinder/opf/opf_ship.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/pathfinder/opf/opf_ship.h') diff --git a/src/pathfinder/opf/opf_ship.h b/src/pathfinder/opf/opf_ship.h index 6afff227b..99050c33f 100644 --- a/src/pathfinder/opf/opf_ship.h +++ b/src/pathfinder/opf/opf_ship.h @@ -12,10 +12,6 @@ #ifndef OPF_SHIP_H #define OPF_SHIP_H -#include "../../direction_type.h" - -typedef bool TPFEnumProc(TileIndex tile, void *data, Trackdir trackdir, uint length); - -void OPFShipFollowTrack(TileIndex tile, DiagDirection direction, TPFEnumProc *enum_proc, void *data); +Track OPFShipChooseTrack(Ship *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks); #endif /* OPF_SHIP_H */ -- cgit v1.2.3-70-g09d2