move enter courtroom to the PV packet instead of just doing it when you click a character

This commit is contained in:
stonedDiscord 2020-11-16 15:13:33 +01:00
parent 4eb45ef2b0
commit 0c382eea7d
2 changed files with 2 additions and 2 deletions

View File

@ -148,8 +148,6 @@ void Courtroom::char_clicked(int n_char)
else
update_character(n_char);
enter_courtroom();
if (n_char != -1)
ui_ic_chat_name->setPlaceholderText(char_list.at(n_char).name);
}

View File

@ -460,6 +460,8 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
if (f_contents.size() < 3)
goto end;
w_courtroom->enter_courtroom();
if (courtroom_constructed)
w_courtroom->update_character(f_contents.at(2).toInt());
}