| 1460 | namespace |
| 1461 | { |
| 1462 | static void stop() |
| 1463 | { |
| 1464 | if (!shared.state) |
| 1465 | { |
| 1466 | return; |
| 1467 | } |
| 1468 | |
| 1469 | shared.state->stop(); |
| 1470 | hide_prompts(); |
| 1471 | shared.active->MasterTellSlaves(0); |
| 1472 | zEntPlayerControlOn((zControlOwner)0x10); |
| 1473 | trigger(0x162); |
| 1474 | |
| 1475 | if (shared.cb) |
| 1476 | { |
| 1477 | shared.cb->on_stop(); |
| 1478 | } |
| 1479 | |
| 1480 | shared.state = NULL; |
| 1481 | deactivate(); |
| 1482 | shared.sounds.clear(); |
| 1483 | speak_stop(); |
| 1484 | unlock_stream(); |
| 1485 | } |
| 1486 | } // namespace |
| 1487 | |
| 1488 | void ztalkbox::stop_wait(U32 x) |
no test coverage detected