diff --git a/DynObj.cpp b/DynObj.cpp index bfa57726..e7ca5c55 100644 --- a/DynObj.cpp +++ b/DynObj.cpp @@ -3899,7 +3899,7 @@ bool TDynamicObject::Update(double dt, double dt1) } // mirrors - if( MoverParameters->Vel > 5.0 ) { + if( MoverParameters->Vel > MoverParameters->MirrorVelClose ) { // automatically fold mirrors when above velocity threshold if( dMirrorMoveL > 0.0 ) { dMirrorMoveL = std::max( diff --git a/McZapkie/MOVER.h b/McZapkie/MOVER.h index 44924468..f46ea938 100644 --- a/McZapkie/MOVER.h +++ b/McZapkie/MOVER.h @@ -1312,6 +1312,7 @@ public: int PlatformOpenMethod { 2 }; /*sposob animacji stopnia*/ #endif double MirrorMaxShift { 90.0 }; + double MirrorVelClose { 5.0 }; bool ScndS = false; /*Czy jest bocznikowanie na szeregowej*/ bool SpeedCtrl = false; /*czy jest tempomat*/ speed_control SpeedCtrlUnit; /*parametry tempomatu*/ diff --git a/McZapkie/Mover.cpp b/McZapkie/Mover.cpp index 7d3f3ec5..433beb95 100644 --- a/McZapkie/Mover.cpp +++ b/McZapkie/Mover.cpp @@ -9871,6 +9871,8 @@ void TMoverParameters::LoadFIZ_Doors( std::string const &line ) { if( platformopenmethod == "Shift" ) { Doors.step_type = 1; } // przesuw extract_value( MirrorMaxShift, "MirrorMaxShift", line, "" ); + extract_value( MirrorVelClose, "MirrorVelClose", line, ""); + } void TMoverParameters::LoadFIZ_BuffCoupl( std::string const &line, int const Index ) {