Switch for disabling mirrors

This commit is contained in:
Królik Uszasty
2022-03-03 22:33:53 +01:00
parent 5891061093
commit 2283ed4ff2
7 changed files with 27 additions and 2 deletions

View File

@@ -3910,7 +3910,9 @@ bool TDynamicObject::Update(double dt, double dt1)
}
// mirrors
if( MoverParameters->Vel > MoverParameters->MirrorVelClose ) {
if( (MoverParameters->Vel > MoverParameters->MirrorVelClose)
|| (MoverParameters->CabActive == 0) && (activation::mirrors)
|| (MoverParameters->MirrorForbidden) ) {
// automatically fold mirrors when above velocity threshold
if( dMirrorMoveL > 0.0 ) {
dMirrorMoveL = std::max(