From 2c696f2cd1c8ecb806f12d0224d5e8beceb973cd Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Mon, 20 May 2024 12:32:35 -0500 Subject: [PATCH] other random fixes fix evidence presenting sfx playing at literally 100x intended volume fix "def2" etc wrong evidence icon position, remove inaccurate evidence positions --- src/aosfxplayer.cpp | 2 +- src/courtroom.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aosfxplayer.cpp b/src/aosfxplayer.cpp index 0775eb9..ac3b851 100644 --- a/src/aosfxplayer.cpp +++ b/src/aosfxplayer.cpp @@ -8,7 +8,7 @@ AOSfxPlayer::AOSfxPlayer(AOApplication *ao_app) int AOSfxPlayer::volume() { - return m_volume * 100; + return m_volume; } void AOSfxPlayer::setVolume(int value) diff --git a/src/courtroom.cpp b/src/courtroom.cpp index ab8d2c4..15fc62e 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -3435,7 +3435,7 @@ void Courtroom::display_evidence_image() QString f_image = local_evidence_list.at(f_evi_id - 1).image; // QString f_evi_name = local_evidence_list.at(f_evi_id - 1).name; // def jud and hlp should display the evidence icon on the RIGHT side - bool is_left_side = !(side == "def" || side == "hlp" || side == "jud" || side == "jur"); + bool is_left_side = !(side.startsWith("def") || side == "hlp"); ui_vp_evidence_display->show_evidence(f_evi_id, f_image, is_left_side, sfx_player->volume()); } }