| 166 | } |
| 167 | |
| 168 | void CActor::OnDisableInfo(shared_str info_id) const |
| 169 | { |
| 170 | CInventoryOwner::OnDisableInfo(info_id); |
| 171 | |
| 172 | #ifdef REMOVE_ARTICLES_ON_DISABLE_INFO |
| 173 | CInfoPortion info_portion; |
| 174 | info_portion.Load(info_id); |
| 175 | AddEncyclopediaArticle(&info_portion, true); |
| 176 | #endif |
| 177 | |
| 178 | if (!HUD().GetUI()) |
| 179 | return; |
| 180 | |
| 181 | //только если находимся в режиме single |
| 182 | CUIGameSP* pGameSP = smart_cast<CUIGameSP*>(HUD().GetUI()->UIGame()); |
| 183 | if (!pGameSP) |
| 184 | return; |
| 185 | |
| 186 | if (pGameSP->TalkMenu->IsShown()) |
| 187 | pGameSP->TalkMenu->NeedUpdateQuestions(); |
| 188 | } |
| 189 | |
| 190 | void CActor::ReceivePhrase(DIALOG_SHARED_PTR& phrase_dialog) |
| 191 | { |
nothing calls this directly
no test coverage detected