| 939 | } |
| 940 | |
| 941 | static void deactivate() |
| 942 | { |
| 943 | stop_audio_effect(); |
| 944 | |
| 945 | ztalkbox* active = shared.active; |
| 946 | if (active == NULL) |
| 947 | { |
| 948 | return; |
| 949 | } |
| 950 | |
| 951 | if (active->prompt_box != NULL) |
| 952 | { |
| 953 | active->prompt_box->deactivate(); |
| 954 | } |
| 955 | shared.active = NULL; |
| 956 | active->dialog_box->flag.visible = false; |
| 957 | } |
| 958 | |
| 959 | static void activate(ztalkbox& t) |
| 960 | { |
no test coverage detected