| 94 | } |
| 95 | |
| 96 | void ztaskbox::stop_talk() |
| 97 | { |
| 98 | ztaskbox* curr = this->current; |
| 99 | |
| 100 | if (curr == NULL) |
| 101 | { |
| 102 | return; |
| 103 | } |
| 104 | |
| 105 | if (curr != this) |
| 106 | { |
| 107 | curr->stop_talk(); |
| 108 | return; |
| 109 | } |
| 110 | |
| 111 | if (!this->flag.enabled || this->state == STATE_INVALID) |
| 112 | { |
| 113 | return; |
| 114 | } |
| 115 | |
| 116 | if (shared != this) |
| 117 | { |
| 118 | return; |
| 119 | } |
| 120 | |
| 121 | ztalkbox* other = (ztalkbox*)zSceneFindObject(this->asset->talk_box); |
| 122 | |
| 123 | if (other) |
| 124 | { |
| 125 | other->stop_talk(); |
| 126 | shared = NULL; |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | void ztaskbox::enable() |
| 131 | { |
no test coverage detected