diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-16 18:55:24 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-16 18:55:24 +0000 |
commit | 4a1b59927f1a5ea692cee71df415ebb54f7a368d (patch) | |
tree | 799e2291e85853a6af613cf36d434978a84e55d9 /game/vehicles/vehicle.cpp | |
parent | Add a camera controller that follows vehicles (diff) | |
download | ilt-4a1b59927f1a5ea692cee71df415ebb54f7a368d.tar.bz2 ilt-4a1b59927f1a5ea692cee71df415ebb54f7a368d.tar.xz ilt-4a1b59927f1a5ea692cee71df415ebb54f7a368d.zip |
Rename types in LinkHistory
Diffstat (limited to 'game/vehicles/vehicle.cpp')
-rw-r--r-- | game/vehicles/vehicle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/game/vehicles/vehicle.cpp b/game/vehicles/vehicle.cpp index f722cff..fceb37c 100644 --- a/game/vehicles/vehicle.cpp +++ b/game/vehicles/vehicle.cpp @@ -10,7 +10,7 @@ Vehicle::Vehicle(const LinkPtr & l, const std::string & obj, const std::string & linkHist.add(l, 0); } -LinkHistory::Return +LinkHistory::Entry LinkHistory::add(const LinkWPtr & l, unsigned char d) { links.insert(links.begin(), {l, d}); @@ -23,13 +23,13 @@ LinkHistory::add(const LinkWPtr & l, unsigned char d) return {lp, d}; } -LinkHistory::Return +LinkHistory::Entry LinkHistory::getCurrent() const { return {links.front().first.lock(), links.front().second}; } -LinkHistory::Return +LinkHistory::Entry LinkHistory::getAt(float len, float * rem) const { auto litr = links.begin(); |