diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2021-02-24 10:26:56 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-24 10:26:56 -0600 |
| commit | a64241a0f0f05967f58650d9f1b0f35f861ce45a (patch) | |
| tree | 91770d2b15e91d83496babbd13b107a9b278869c /src/packet_distribution.cpp | |
| parent | f1eb91a612ac1406d53b84ee5bad4fa83d78a09f (diff) | |
| parent | 5ac95ada564f11419441eca32907aef7ec16dd90 (diff) | |
Merge pull request #473 from AttorneyOnline/fix/everything
Fix change character lag, bg resizing and repos weirdness, inconsistent behavior, sticker setting etc.
Diffstat (limited to 'src/packet_distribution.cpp')
| -rw-r--r-- | src/packet_distribution.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index 1c881201..b2e5d3ed 100644 --- a/src/packet_distribution.cpp +++ b/src/packet_distribution.cpp @@ -462,6 +462,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet) goto end; if (courtroom_constructed) { + qDebug() << f_contents; if (f_contents.size() >= 2) // We have a pos included in the background packet! w_courtroom->set_side(f_contents.at(1)); @@ -475,7 +476,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet) if (courtroom_constructed) // We were sent a "set position" packet { - w_courtroom->set_side(f_contents.at(0), false); + w_courtroom->set_side(f_contents.at(0)); append_to_demofile(p_packet->to_string(true)); } } @@ -493,8 +494,10 @@ void AOApplication::server_packet_received(AOPacket *p_packet) w_courtroom->enter_courtroom(); - if (courtroom_constructed) + if (courtroom_constructed) { + w_courtroom->set_courtroom_size(); w_courtroom->update_character(f_contents.at(2).toInt()); + } } else if (header == "MS") { if (courtroom_constructed && courtroom_loaded) |
