From f36d6d4803665199e720382638d6b870707dd42d Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sat, 17 Jul 2010 08:14:39 +0100 Subject: [PATCH] Move flat_graident_func into TrackCommon --- include/ITrackSegment.hpp | 2 +- src/TrackCommon.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/ITrackSegment.hpp b/include/ITrackSegment.hpp index 7867a64..eb39b4e 100644 --- a/include/ITrackSegment.hpp +++ b/include/ITrackSegment.hpp @@ -45,7 +45,7 @@ namespace track { typedef function TransformFunc; typedef function GradientFunc; - inline float flat_gradient_func(const TravelToken& t, float d) { return 0.0f; } + float flat_gradient_func(const TravelToken& t, float d); // Sums up all the information required to travel along a piece // of track diff --git a/src/TrackCommon.cpp b/src/TrackCommon.cpp index 2ed82fd..630a392 100644 --- a/src/TrackCommon.cpp +++ b/src/TrackCommon.cpp @@ -326,3 +326,8 @@ void CurvedTrackHelper::merge_curved_track(IMeshBufferPtr buf, Vector off merge_sleeper(buf, off + rotateY(t, y_angle), y_angle); } } + +float track::flat_gradient_func(const TravelToken& t, float d) +{ + return 0.0f; +} -- 2.39.2