From 297cce9964da2869b9c5f3129e22fd1057c6a002 Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 14 May 2001 21:57:11 +0000 Subject: [PATCH] --- source/platform/pbranch.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/platform/pbranch.cpp b/source/platform/pbranch.cpp index 8b8bf2e64..a1bb8365e 100644 --- a/source/platform/pbranch.cpp +++ b/source/platform/pbranch.cpp @@ -176,6 +176,17 @@ void CNpcBranchPlatform::processMovement( int _frames ) m_angularVelocity += angularForce; } + else if ( ( getRnd() % 50 ) == 0 ) + { + s16 angularForce = 6 * _frames; + + if ( m_reversed ) + { + angularForce = -angularForce; + } + + m_angularVelocity += angularForce; + } s32 resistance = -( 5 * _frames * newAngle ) >> 8;