diff --git a/vehicle/Gauge.h b/vehicle/Gauge.h index 173c8a9f6..8d27c1144 100644 --- a/vehicle/Gauge.h +++ b/vehicle/Gauge.h @@ -58,11 +58,14 @@ public: // copies of the control animated along with it, from its definitions marked duplicate: yes std::vector const &mirrors() const { return m_mirrors; } - // the value shown is value * scale + offset + // the value shown is value * scale + offset. the copies of the control (mirrors()) show the same value, so they + // get the same offset float offset() const { return m_offset; } void offset( float const Offset ) { - m_offset = Offset; } + m_offset = Offset; + for( auto &mirror : m_mirrors ) { + mirror.m_offset = Offset; } } float scale() const { return m_scale; } // returns offset of submodel associated with the button from the model centre