mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Make sure fade operations properly end (bug #4639)
This commit is contained in:
parent
f0640cbb21
commit
596dbbe70b
@ -19,6 +19,7 @@
|
||||
Bug #4384: Resist Normal Weapons only checks ammunition for ranged weapons
|
||||
Bug #4411: Reloading a saved game while falling prevents damage in some cases
|
||||
Bug #4540: Rain delay when exiting water
|
||||
Bug #4639: Black screen after completing first mages guild mission + training
|
||||
Bug #4701: PrisonMarker record is not hardcoded like other markers
|
||||
Bug #4703: Editor: it's possible to preview levelled list records
|
||||
Bug #4705: Editor: unable to open exterior cell views from Instances table
|
||||
|
@ -38,12 +38,20 @@ namespace MWGui
|
||||
if (!mRunning)
|
||||
return;
|
||||
|
||||
if (mRemainingTime <= 0 || mStartAlpha == mTargetAlpha)
|
||||
if (mStartAlpha == mTargetAlpha)
|
||||
{
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
|
||||
if (mRemainingTime <= 0)
|
||||
{
|
||||
// Make sure the target alpha is applied
|
||||
mFader->notifyAlphaChanged(mTargetAlpha);
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
|
||||
if (mRemainingTime > mTargetTime)
|
||||
{
|
||||
mRemainingTime -= dt;
|
||||
@ -162,7 +170,7 @@ namespace MWGui
|
||||
if (time < 0.f)
|
||||
return;
|
||||
|
||||
if (time == 0.f)
|
||||
if (time == 0.f && delay == 0.f)
|
||||
{
|
||||
mCurrentAlpha = targetAlpha;
|
||||
applyAlpha();
|
||||
|
Loading…
x
Reference in New Issue
Block a user