Shows the intro movie and briefing for a level
| 1385 | |
| 1386 | // Shows the intro movie and briefing for a level |
| 1387 | bool DoLevelIntro() { |
| 1388 | tLevelNode *lvl = Current_level; |
| 1389 | |
| 1390 | mprintf(0, "In DoLevelIntro()\n"); |
| 1391 | |
| 1392 | // multiplayer stuff (we skip the movie and briefings) |
| 1393 | if (Game_mode & GM_MULTI) { |
| 1394 | if (Netgame.local_role == LR_CLIENT) { |
| 1395 | // Clear out residual junk |
| 1396 | MultiFlushAllIncomingBuffers(); |
| 1397 | |
| 1398 | if (!MultiPollForLevelInfo()) { |
| 1399 | return false; |
| 1400 | } |
| 1401 | } |
| 1402 | return true; |
| 1403 | } |
| 1404 | |
| 1405 | #ifdef STEALTH // DAJ just get started |
| 1406 | return true; |
| 1407 | #endif |
| 1408 | // if this level has a movie: |
| 1409 | if (lvl->flags & LVLFLAG_STARTMOVIE) { |
| 1410 | DoMissionMovie(Current_mission.levels[Current_mission.cur_level - 1].moviename); |
| 1411 | } |
| 1412 | |
| 1413 | // if this level has a briefing: |
| 1414 | if (lvl->flags & LVLFLAG_BRIEFING) { |
| 1415 | if (!DoMissionBriefing(Current_mission.cur_level - 1)) { |
| 1416 | // quit exit to main menu |
| 1417 | return false; |
| 1418 | } |
| 1419 | } |
| 1420 | return true; |
| 1421 | } |
| 1422 | |
| 1423 | // Sets the current level for subsequent level loads, movies, or briefings |
| 1424 | void SetCurrentLevel(int level) { |
no test coverage detected