summaryrefslogtreecommitdiff
path: root/yapf/follow_track.cpp
diff options
context:
space:
mode:
authorKUDr <KUDr@openttd.org>2006-08-30 21:10:25 +0000
committerKUDr <KUDr@openttd.org>2006-08-30 21:10:25 +0000
commitd5ebb2b359cfbf797d5b6de64099344341406c6b (patch)
treeae321b35129c52128080bb4c2f24f6ab470e6b2c /yapf/follow_track.cpp
parent513b2f8cd969c294e1ce4a919a7aab4618e09596 (diff)
downloadopenttd-d5ebb2b359cfbf797d5b6de64099344341406c6b.tar.xz
(svn r6245) -Add: added comments for all YAPF C interface functions (yapf.h) used by other modules, added FollowTrackInit() into YAPF track followers.
Diffstat (limited to 'yapf/follow_track.cpp')
-rw-r--r--yapf/follow_track.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/yapf/follow_track.cpp b/yapf/follow_track.cpp
index 9d494bb5b..ad2f0b724 100644
--- a/yapf/follow_track.cpp
+++ b/yapf/follow_track.cpp
@@ -4,6 +4,12 @@
#include "yapf.hpp"
#include "follow_track.hpp"
+void FollowTrackInit(FollowTrack_t *This, const Vehicle* v)
+{
+ CFollowTrackWater& F = *(CFollowTrackWater*) This;
+ F.Init(v, NULL);
+}
+
bool FollowTrackWater(FollowTrack_t *This, TileIndex old_tile, Trackdir old_td)
{
CFollowTrackWater& F = *(CFollowTrackWater*) This;