| 137 | } |
| 138 | |
| 139 | LPCSTR CPhraseDialog::GetPhraseText(const shared_str& phrase_id, bool current_speaking) |
| 140 | { |
| 141 | CPhrase* ph = GetPhrase(phrase_id); |
| 142 | |
| 143 | CGameObject* pSpeakerGO1 = (current_speaking) ? smart_cast<CGameObject*>(FirstSpeaker()) : 0; |
| 144 | CGameObject* pSpeakerGO2 = (current_speaking) ? smart_cast<CGameObject*>(SecondSpeaker()) : 0; |
| 145 | |
| 146 | return ph->m_PhraseScript.GetScriptText(ph->GetText(), pSpeakerGO1, pSpeakerGO2, m_DialogId.c_str(), phrase_id.c_str()); |
| 147 | } |
| 148 | |
| 149 | LPCSTR CPhraseDialog::DialogCaption() { return data()->m_sCaption.size() ? *data()->m_sCaption : GetPhraseText("0"); } |
| 150 |
no test coverage detected