MCPcopy Create free account
hub / github.com/demoth/jake2 / StopCinematic

Method StopCinematic

client/src/main/java/jake2/client/SCR.java:1451–1472  ·  view source on GitHub ↗

StopCinematic

()

Source from the content-addressed store, hash-verified

1449 * StopCinematic
1450 */
1451 static void StopCinematic() {
1452 if (cin.restart_sound) {
1453 // done
1454 ClientGlobals.cl.cinematictime = 0;
1455 cin.pic = null;
1456 cin.pic_pending = null;
1457 if (ClientGlobals.cl.cinematicpalette_active) {
1458 ClientGlobals.re.CinematicSetPalette(null);
1459 ClientGlobals.cl.cinematicpalette_active = false;
1460 }
1461 if (ClientGlobals.cl.cinematic_file != null) {
1462 // free the mapped byte buffer
1463 ClientGlobals.cl.cinematic_file = null;
1464 }
1465 if (cin.hnodes1 != null) {
1466 cin.hnodes1 = null;
1467 }
1468
1469 S.disableStreaming();
1470 cin.restart_sound = false;
1471 }
1472 }
1473
1474 /**
1475 * FinishCinematic

Callers 2

DisconnectMethod · 0.95
RunCinematicMethod · 0.95

Calls 2

disableStreamingMethod · 0.95
CinematicSetPaletteMethod · 0.65

Tested by

no test coverage detected