diff options
| author | Crystalwarrior <Varsash@Gmail.com> | 2022-05-23 21:49:41 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-23 20:49:41 +0200 |
| commit | 868c26f52e4fbb4430ecb782b0551de90a1fae96 (patch) | |
| tree | 02d83de8a12d91044b7c85ea7d824fb7dae46ee1 | |
| parent | 629066f376eff856976b4551f30b45f4568e1631 (diff) | |
Fix screenshake misaligning the char on idle screenshake (#724)
| -rw-r--r-- | src/courtroom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index d4e67e7a..249f09e4 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -3841,7 +3841,7 @@ void Courtroom::set_self_offset(QString p_list, QString p_effect) { self_offset_v = 0; else self_offset_v = self_offsets[1].toInt(); - ui_vp_player_char->move(ui_viewport->width() * self_offset / 100, ui_viewport->height() * self_offset_v / 100); + ui_vp_player_char->move_and_center(ui_viewport->width() * self_offset / 100, ui_viewport->height() * self_offset_v / 100); //If an effect is ignoring the users offset, we force it to the default position of the viewport. if (ao_app->get_effect_property(play_effect[0], current_char, "ignore_offset") == "true") { |
