Skip to content

Commit

Permalink
Update courtroom.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Satoru-1816 authored Jan 14, 2025
1 parent baca1f0 commit a527197
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/courtroom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a527197

Please sign in to comment.