fixed an issue with emote buttons and spectator
This commit is contained in:
parent
01df52755c
commit
afb22c8564
@ -911,8 +911,6 @@ void Courtroom::handle_chatmessage_2()
|
|||||||
QString remote_name = m_chatmessage[CHAR_NAME];
|
QString remote_name = m_chatmessage[CHAR_NAME];
|
||||||
QString local_showname = ao_app->get_showname(remote_name);
|
QString local_showname = ao_app->get_showname(remote_name);
|
||||||
|
|
||||||
qDebug() << "local_showname: " << local_showname;
|
|
||||||
|
|
||||||
//empty string means we couldnt find showname in char ini
|
//empty string means we couldnt find showname in char ini
|
||||||
if (local_showname == "")
|
if (local_showname == "")
|
||||||
ui_vp_showname->setText(remote_name);
|
ui_vp_showname->setText(remote_name);
|
||||||
@ -1620,10 +1618,13 @@ void Courtroom::char_clicked(int n_char)
|
|||||||
if (!file_exists(char_ini_path))
|
if (!file_exists(char_ini_path))
|
||||||
{
|
{
|
||||||
qDebug() << "did not find " << char_ini_path;
|
qDebug() << "did not find " << char_ini_path;
|
||||||
//T0D0: call error
|
call_notice("Could not find " + char_ini_path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (n_real_char == m_cid)
|
||||||
|
enter_courtroom(m_cid);
|
||||||
|
else
|
||||||
ao_app->send_server_packet(new AOPacket("CC#" + QString::number(ao_app->s_pv) + "#" + QString::number(n_real_char) + "#" + get_hdid() + "#%"));
|
ao_app->send_server_packet(new AOPacket("CC#" + QString::number(ao_app->s_pv) + "#" + QString::number(n_real_char) + "#" + get_hdid() + "#%"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user