| 957 | } |
| 958 | |
| 959 | static void activate(ztalkbox& t) |
| 960 | { |
| 961 | deactivate(); |
| 962 | |
| 963 | shared.active = &t; |
| 964 | |
| 965 | if (t.dialog_box->flag.active) |
| 966 | { |
| 967 | t.dialog_box->deactivate(); |
| 968 | } |
| 969 | |
| 970 | if (t.prompt_box != NULL && t.flag.visible) |
| 971 | { |
| 972 | t.prompt_box->activate(); |
| 973 | } |
| 974 | |
| 975 | start_audio_effect(t); |
| 976 | |
| 977 | t.dialog_box->flag.visible = 1; |
| 978 | } |
| 979 | static bool is_wait_jot(const xtextbox::jot& j) |
| 980 | { |
| 981 | return j.tag && j.tag->parse_tag == parse_tag_wait; |
no test coverage detected