summaryrefslogtreecommitdiffhomepage
path: root/logic/pipeline.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-03-10 17:29:38 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-03-10 18:35:13 +0100
commit6286bffbf988ed5ec47462a92a11c902e4d9669f (patch)
tree91f20c48fd8783226f707a916120fd596ed77807 /logic/pipeline.hpp
parent130715a4209c0f0efb5b35659eb76911a0bc6bbb (diff)
logic/pipeline: smoothen transition for reltrans not aiming
Requested by: HOPPING_PONY on the Russian IL-2 Sturmovik forum.
Diffstat (limited to 'logic/pipeline.hpp')
-rw-r--r--logic/pipeline.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/logic/pipeline.hpp b/logic/pipeline.hpp
index 7f618ea1..82a339a3 100644
--- a/logic/pipeline.hpp
+++ b/logic/pipeline.hpp
@@ -42,6 +42,12 @@ class reltrans
{
euler_t interp_pos, last_value;
Timer interp_timer;
+
+ // this implements smooth transition into reltrans mode
+ // once not aiming anymore. see `apply_pipeline()'.
+ Timer interp_phase_timer;
+ unsigned RC_phase;
+
bool cur = false;
bool in_zone = false;