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 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user