From a527197f17f99361b7601b8b14606afb69ffd716 Mon Sep 17 00:00:00 2001 From: "Satoru;1816" <81326989+Satoru-1816@users.noreply.github.com> Date: Tue, 14 Jan 2025 19:08:54 -0300 Subject: [PATCH] Update courtroom.cpp --- src/courtroom.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 370b2cb84..777d18177 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -3230,8 +3230,8 @@ void Courtroom::do_character_slide() slide_animation->start(QAbstractAnimation::DeleteWhenStopped); - ui_element->old_x_offset = self_offset; - ui_element->old_y_offset = self_offset_v; + ui_vp_player_char->old_x_offset = self_offset; + ui_vp_player_char->old_y_offset = self_offset_v; } void Courtroom::do_effect(QString fx_path, QString fx_sound, QString p_char, @@ -4188,11 +4188,11 @@ void Courtroom::start_chat_ticking() // Display the evidence display_evidence_image(); - if (last_x_offset == char_offset) + if (ui_vp_player_char->old_x_offset == ui_vp_player_char->getX()) this->do_character_bounce(); qDebug() << "char offset: " << char_offset; qDebug() << "last x offset: " << ui_vp_player_char->old_x_offset; - if (char_offset != ui_vp_player_char->old_x_offset || char_vert_offset != ui_vp_player_char->old_y_offset) + if (ui_vp_player_char->getX() != ui_vp_player_char->old_x_offset || ui_vp_player_char->getY() != ui_vp_player_char->old_y_offset) this->do_character_slide(); // handle expanded desk mods