2 =====================
\r
6 =====================
\r
9 static char *ParmStrings[] = {"easy","normal","hard",""};
\r
11 void DemoLoop (void)
\r
16 // check for launch from ted
\r
21 gamestate.mapon = tedlevelnum;
\r
22 restartgame = gd_Normal;
\r
23 for (i = 1;i < _argc;i++)
\r
25 if ( (level = US_CheckParm(_argv[i],ParmStrings)) == -1)
\r
28 restartgame = gd_Easy+level;
\r
39 displayofs = bufferofs = 0;
\r
40 VW_Bar (0,0,320,200,0);
\r
44 CA_CacheGrChunk (TITLEPIC);
\r
45 bufferofs = SCREEN2START;
\r
46 displayofs = SCREEN1START;
\r
47 VWB_DrawPic (0,0,TITLEPIC);
\r
48 MM_SetPurge (&grsegs[TITLEPIC],3);
\r
49 UNMARKGRCHUNK(TITLEPIC);
\r
50 FizzleFade (bufferofs,displayofs,320,200,true);
\r
52 if (!IN_UserInput(TickBase*3,false))
\r
54 CA_CacheGrChunk (CREDITSPIC);
\r
55 VWB_DrawPic (0,0,CREDITSPIC);
\r
56 MM_SetPurge (&grsegs[CREDITSPIC],3);
\r
57 UNMARKGRCHUNK(CREDITSPIC);
\r
58 FizzleFade (bufferofs,displayofs,320,200,true);
\r
62 if (!IN_UserInput(TickBase*3,false))
\r
66 FizzleFade (bufferofs,displayofs,320,200,true);
\r
67 IN_UserInput(TickBase*3,false);
\r
70 if (IN_IsUserInput())
\r
74 if (restartgame || loadedgame)
\r