| 240 | } |
| 241 | |
| 242 | void CActor::RunTalkDialog(CInventoryOwner* talk_partner) |
| 243 | { |
| 244 | //предложить поговорить с нами |
| 245 | if (talk_partner->OfferTalk(this)) |
| 246 | { |
| 247 | StartTalk(talk_partner); |
| 248 | //только если находимся в режиме single |
| 249 | CUIGameSP* pGameSP = smart_cast<CUIGameSP*>(HUD().GetUI()->UIGame()); |
| 250 | if (pGameSP) |
| 251 | { |
| 252 | if (pGameSP->MainInputReceiver()) |
| 253 | Game().StartStopMenu(pGameSP->MainInputReceiver(), true); |
| 254 | pGameSP->StartTalk(); |
| 255 | } |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | void CActor::StartTalk(CInventoryOwner* talk_partner, bool) |
| 260 | { |
nothing calls this directly
no test coverage detected