File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed
Core/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -631,9 +631,6 @@ void W3DTankTruckDraw::doDrawModule(const Matrix3D* transformMtx)
631631 if (speed>SIZE_CAP) {
632632 speed = SIZE_CAP;
633633 }
634- m_dustEffect->setSizeMultiplier (speed);
635- }
636- if (m_dirtEffect) {
637634 if (wheelInfo && wheelInfo->m_framesAirborne >3 ) {
638635 Real factor = 1 + wheelInfo->m_framesAirborne /16 ;
639636 if (factor>2.0 ) factor = 2.0 ;
@@ -642,9 +639,7 @@ void W3DTankTruckDraw::doDrawModule(const Matrix3D* transformMtx)
642639 m_landingSound.setPosition (obj->getPosition ());
643640 TheAudio->addAudioEvent (&m_landingSound);
644641 } else {
645- if (!accelerating || speed>2 .0f ) {
646- m_dirtEffect->stop ();
647- }
642+ m_dustEffect->setSizeMultiplier (speed);
648643 }
649644 }
650645 if (m_powerslideEffect) {
@@ -656,7 +651,7 @@ void W3DTankTruckDraw::doDrawModule(const Matrix3D* transformMtx)
656651 }
657652 }
658653 if (m_dirtEffect) {
659- if (!accelerating || speed> 2 . 0f ) {
654+ if (!accelerating) {
660655 m_dirtEffect->stop ();
661656 }
662657 }
Original file line number Diff line number Diff line change @@ -588,9 +588,6 @@ void W3DTruckDraw::doDrawModule(const Matrix3D* transformMtx)
588588 if (speed>SIZE_CAP) {
589589 speed = SIZE_CAP;
590590 }
591- m_dustEffect->setSizeMultiplier (speed);
592- }
593- if (m_dirtEffect) {
594591 if (wheelInfo && wheelInfo->m_framesAirborne >3 ) {
595592 Real factor = 1 + wheelInfo->m_framesAirborne /16 ;
596593 if (factor>2.0 ) factor = 2.0 ;
@@ -599,9 +596,7 @@ void W3DTruckDraw::doDrawModule(const Matrix3D* transformMtx)
599596 m_landingSound.setObjectID (obj->getID ());
600597 TheAudio->addAudioEvent (&m_landingSound);
601598 } else {
602- if (!accelerating || speed>2 .0f ) {
603- m_dirtEffect->stop ();
604- }
599+ m_dustEffect->setSizeMultiplier (speed);
605600 }
606601 }
607602 if (m_powerslideEffect) {
@@ -613,7 +608,7 @@ void W3DTruckDraw::doDrawModule(const Matrix3D* transformMtx)
613608 }
614609 }
615610 if (m_dirtEffect) {
616- if (!accelerating || speed> 2 . 0f ) {
611+ if (!accelerating) {
617612 m_dirtEffect->stop ();
618613 }
619614 }
You can’t perform that action at this time.
0 commit comments