mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-21 19:11:06 +00:00
- Exhumed: Optimized the flow in the laptop cutscene.
This commit is contained in:
parent
072ab54b4a
commit
d18dbdf7db
1 changed files with 3 additions and 3 deletions
|
@ -1099,6 +1099,7 @@ private:
|
||||||
|
|
||||||
auto tex = dynamic_cast<FRestorableTile*>(tileGetTexture(kTileLoboLaptop)->GetTexture()->GetImage());
|
auto tex = dynamic_cast<FRestorableTile*>(tileGetTexture(kTileLoboLaptop)->GetTexture()->GetImage());
|
||||||
if (tex) tex->Reload();
|
if (tex) tex->Reload();
|
||||||
|
TileFiles.InvalidateTile(kTileLoboLaptop);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1120,7 +1121,6 @@ private:
|
||||||
|
|
||||||
void DisplayPhase2()
|
void DisplayPhase2()
|
||||||
{
|
{
|
||||||
DrawTexture(twod, tileGetTexture(kTileLoboLaptop), 0, 0, DTA_FullscreenEx, FSMode_ScaleToFit43, TAG_DONE);
|
|
||||||
int yy = ebp;
|
int yy = ebp;
|
||||||
for (int i = 0; i < nStringTypeOn; i++, yy += 8)
|
for (int i = 0; i < nStringTypeOn; i++, yy += 8)
|
||||||
{
|
{
|
||||||
|
@ -1138,6 +1138,7 @@ private:
|
||||||
}
|
}
|
||||||
int currentclock = clock * 120 / 1'000'000'000;
|
int currentclock = clock * 120 / 1'000'000'000;
|
||||||
twod->ClearScreen();
|
twod->ClearScreen();
|
||||||
|
DrawTexture(twod, tileGetTexture(kTileLoboLaptop), 0, 0, DTA_FullscreenEx, FSMode_ScaleToFit43, TAG_DONE);
|
||||||
switch (phase)
|
switch (phase)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -1146,7 +1147,6 @@ private:
|
||||||
Phase1();
|
Phase1();
|
||||||
nextclock += 4;
|
nextclock += 4;
|
||||||
}
|
}
|
||||||
DrawTexture(twod, tileGetTexture(kTileLoboLaptop), 0, 0, DTA_FullscreenEx, FSMode_ScaleToFit43, TAG_DONE);
|
|
||||||
if (skiprequest || currentclock >= 240)
|
if (skiprequest || currentclock >= 240)
|
||||||
{
|
{
|
||||||
InitPhase2();
|
InitPhase2();
|
||||||
|
@ -1179,7 +1179,7 @@ private:
|
||||||
if (skiprequest)
|
if (skiprequest)
|
||||||
{
|
{
|
||||||
nextclock = (kTimerTicks * (screentext.Size() + 2)) + currentclock;
|
nextclock = (kTimerTicks * (screentext.Size() + 2)) + currentclock;
|
||||||
phase = 3;
|
phase = 4;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue