Beispiel #1
0
void DialogueSupervisor::_UpdateEmote()
{
    MapObject *object = MapMode::CurrentInstance()->GetObjectSupervisor()->GetObject(_current_dialogue->GetLineSpeaker(_line_counter));
    if(!object || !object->HasEmote()) {
        _emote_triggered = true;
        _BeginLine();
    }
}
Beispiel #2
0
void DialogueSupervisor::_UpdateEmote()
{
    uint32 speaker_id = _current_dialogue->GetLineSpeaker(_line_counter);
    MapObject *object = speaker_id > 0 ?
        MapMode::CurrentInstance()->GetObjectSupervisor()->GetObject(speaker_id)
        : NULL;

    if(!object || !object->HasEmote()) {
        _emote_triggered = true;
        _BeginLine();
    }
}