MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / IntroScreen

Function IntroScreen

Descent3/init.cpp:1757–1783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1755#endif
1756
1757void IntroScreen() {
1758// #if (defined(OEM) || defined(DEMO) )
1759#ifdef DEMO
1760 ShowStaticScreen("tantrum.ogf", true, 3.0);
1761 ShowStaticScreen("outrage.ogf", true, 3.0);
1762#else
1763#endif
1764
1765#ifdef DEMO
1766 int bm_handle = bm_AllocLoadFileBitmap("demomenu.ogf", 0);
1767#else
1768 int bm_handle = bm_AllocLoadFileBitmap("oemmenu.ogf", 0);
1769#endif
1770 mprintf(0, "Intro screen!.\n");
1771
1772 if (bm_handle > -1) {
1773 if (!bm_CreateChunkedBitmap(bm_handle, &Title_bitmap))
1774 Error("Failed to slice up d3.ogf!");
1775
1776 bm_FreeBitmap(bm_handle);
1777
1778 Title_bitmap_init = true;
1779 InitMessage(NULL);
1780 } else {
1781 mprintf(1, "Unable to find d3.tga.\n");
1782 }
1783}
1784
1785void InitDedicatedServer() {
1786 Game_mode |= GM_MULTI;

Callers 1

Descent3Function · 0.85

Calls 6

ShowStaticScreenFunction · 0.85
bm_AllocLoadFileBitmapFunction · 0.85
bm_CreateChunkedBitmapFunction · 0.85
ErrorFunction · 0.85
bm_FreeBitmapFunction · 0.85
InitMessageFunction · 0.85

Tested by

no test coverage detected