1
0
mirror of synced 2024-11-12 01:20:49 +01:00

Fix issue with wheel rumble going too long in Scud Race when select track

This commit is contained in:
Aaron M 2020-05-04 11:59:55 +12:00
parent 49316aa9ee
commit a52fdf55e1

View File

@ -512,6 +512,7 @@ static bool DontSineUntilRaceStart = false;
static bool HardDrivinFrame = false; static bool HardDrivinFrame = false;
static bool Motion = false; static bool Motion = false;
static bool MotionFalse = false; static bool MotionFalse = false;
static bool StartEffectOnce = false;
HINSTANCE hInstance; HINSTANCE hInstance;
HINSTANCE hPrevInstance; HINSTANCE hPrevInstance;
@ -1948,8 +1949,19 @@ void OutputReading::FFBLoop(EffectConstants* constants, Helpers* helpers, Effect
if (stateFFB == 0x75) if (stateFFB == 0x75)
{ {
Effect2 = true; if (!StartEffectOnce)
CreateThread(NULL, 0, ThreadForDaytonaStartEffect, NULL, 0, NULL); {
StartEffectOnce = true;
Effect2 = true;
CreateThread(NULL, 0, ThreadForDaytonaStartEffect, NULL, 0, NULL);
}
}
else
{
if (StartEffectOnce)
{
StartEffectOnce = false;
}
} }
if (Effect2) if (Effect2)