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 8370af2 commit 1b6fd17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/courtroom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3211,7 +3211,7 @@ void Courtroom::do_character_slide(AOLayer *widget)
// Calcula las posiciones centradas
widget->move_and_center(
ui_viewport->width() * last_x_offset / 100,
ui_viewport->height() * char_vert_offset / 100
ui_viewport->height() * last_y_offset / 100
);
QPoint old_pos(widget->centeredX, widget->centeredY);

Expand Down Expand Up @@ -4190,7 +4190,7 @@ void Courtroom::start_chat_ticking()
if (last_x_offset == char_offset)
this->do_character_bounce();

if (char_offset != last_x_offset)
if (char_offset != last_x_offset || char_vert_offset != last_y_offset)
this->do_character_slide(ui_vp_player_char);

// handle expanded desk mods
Expand Down

0 comments on commit 1b6fd17

Please sign in to comment.