Fix issue with wheel rumble going too long in Scud Race when select track
This commit is contained in:
parent
49316aa9ee
commit
a52fdf55e1
@ -512,6 +512,7 @@ static bool DontSineUntilRaceStart = false;
|
||||
static bool HardDrivinFrame = false;
|
||||
static bool Motion = false;
|
||||
static bool MotionFalse = false;
|
||||
static bool StartEffectOnce = false;
|
||||
|
||||
HINSTANCE hInstance;
|
||||
HINSTANCE hPrevInstance;
|
||||
@ -1948,8 +1949,19 @@ void OutputReading::FFBLoop(EffectConstants* constants, Helpers* helpers, Effect
|
||||
|
||||
if (stateFFB == 0x75)
|
||||
{
|
||||
Effect2 = true;
|
||||
CreateThread(NULL, 0, ThreadForDaytonaStartEffect, NULL, 0, NULL);
|
||||
if (!StartEffectOnce)
|
||||
{
|
||||
StartEffectOnce = true;
|
||||
Effect2 = true;
|
||||
CreateThread(NULL, 0, ThreadForDaytonaStartEffect, NULL, 0, NULL);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (StartEffectOnce)
|
||||
{
|
||||
StartEffectOnce = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (Effect2)
|
||||
|
Loading…
Reference in New Issue
Block a user