StopCinematic
()
| 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 |
no test coverage detected