mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 04:00:53 +00:00
- fixed screen job fadeout.
This commit is contained in:
parent
091a9b7fef
commit
962e313eb2
1 changed files with 2 additions and 1 deletions
|
@ -202,7 +202,7 @@ public:
|
||||||
int FadeoutFrame(double smoothratio)
|
int FadeoutFrame(double smoothratio)
|
||||||
{
|
{
|
||||||
auto& job = jobs[index];
|
auto& job = jobs[index];
|
||||||
double ms = (job.job->ticks + smoothratio) * 1000 / GameTicRate / job.job->fadetime;
|
double ms = (fadeticks + smoothratio) * 1000 / GameTicRate / job.job->fadetime;
|
||||||
float screenfade = 1.f - (float)clamp(ms, 0., 1.);
|
float screenfade = 1.f - (float)clamp(ms, 0., 1.);
|
||||||
twod->SetScreenFade(screenfade);
|
twod->SetScreenFade(screenfade);
|
||||||
job.job->DrawFrame(1.);
|
job.job->DrawFrame(1.);
|
||||||
|
@ -292,6 +292,7 @@ public:
|
||||||
jobs[index].job->fadestate = DScreenJob::fadeout;
|
jobs[index].job->fadestate = DScreenJob::fadeout;
|
||||||
jobs[index].job->state = DScreenJob::stopping;
|
jobs[index].job->state = DScreenJob::stopping;
|
||||||
actionState = State_Fadeout;
|
actionState = State_Fadeout;
|
||||||
|
fadeticks = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue