MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / intro_LegionMessage

Method intro_LegionMessage

Source/Fodder.cpp:16580–16618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16578}
16579
16580void cFodder::intro_LegionMessage() {
16581 int16 Duration = 150;
16582 bool DoBreak = false;
16583
16584 mSurface->clearBuffer();
16585 mGraphics->PaletteSet();
16586
16587 Intro_Print_String(&mVersionCurrent->getIntroData()->at(0).mText[0]);
16588 Intro_Print_String(&mVersionCurrent->getIntroData()->at(0).mText[1]);
16589 Intro_Print_String(&mVersionCurrent->getIntroData()->at(0).mText[2]);
16590 mSurface->Save();
16591
16592 while (mSurface->isPaletteAdjusting() || DoBreak == false) {
16593
16594 if (mSurface->isPaletteAdjusting()) {
16595 mSurface->palette_FadeTowardNew();
16596
16597 if (!DoBreak) {
16598 Video_Sleep();
16599 Video_Sleep();
16600 Video_Sleep();
16601 continue;
16602 }
16603 }
16604
16605 if (Duration >= 0)
16606 --Duration;
16607 else {
16608 if (DoBreak == false) {
16609 mSurface->paletteNew_SetToBlack();
16610
16611 Duration = 0;
16612 DoBreak = true;
16613 }
16614 }
16615
16616 Video_Sleep();
16617 }
16618}
16619
16620int16 cFodder::intro_Play() {
16621

Callers

nothing calls this directly

Calls 7

clearBufferMethod · 0.80
getIntroDataMethod · 0.80
SaveMethod · 0.80
isPaletteAdjustingMethod · 0.80
palette_FadeTowardNewMethod · 0.80
paletteNew_SetToBlackMethod · 0.80
PaletteSetMethod · 0.45

Tested by

no test coverage detected