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

Method Phase_Paused

Source/Fodder.cpp:396–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396void cFodder::Phase_Paused() {
397 Draw_Phase_Paused();
398
399 // Fade the background out, and the 'mission paused' message in
400 mSurface->palette_FadeTowardNew();
401 mSurface->palette_FadeTowardNew();
402 mSurface->palette_FadeTowardNew();
403
404 while (mPhase_Paused) {
405
406 mSurface->draw();
407
408 // Copy the rendered surface of the 'mission paused' message over the top of the main surface
409 mSurface->mergeFrom(mSurface2);
410
411 Video_Sleep();
412 }
413
414 mGraphics->PaletteSet();
415 mSurface->palette_SetFromNew();
416 mSurface->surfaceSetToPalette();
417
418 mPhase_Aborted = false;
419
420 // Redraw the screen
421 mGraphics->MapTiles_Draw();
422 Sprites_Draw();
423 mGraphics->Sidebar_Copy_To_Surface();
424}
425
426void cFodder::Phase_Prepare() {
427

Callers

nothing calls this directly

Calls 8

palette_FadeTowardNewMethod · 0.80
drawMethod · 0.80
mergeFromMethod · 0.80
palette_SetFromNewMethod · 0.80
surfaceSetToPaletteMethod · 0.80
PaletteSetMethod · 0.45
MapTiles_DrawMethod · 0.45

Tested by

no test coverage detected