aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2024-05-20 12:32:35 -0500
committerin1tiate <32779090+in1tiate@users.noreply.github.com>2024-05-20 12:32:35 -0500
commit2c696f2cd1c8ecb806f12d0224d5e8beceb973cd (patch)
tree8f50ae72ccc15c1074ef3988ad99e278ae6058c9 /src
parente2b47afd912e80f784bc6a25bf03e65eb405e0a6 (diff)
other random fixes
fix evidence presenting sfx playing at literally 100x intended volume fix "def2" etc wrong evidence icon position, remove inaccurate evidence positions
Diffstat (limited to 'src')
-rw-r--r--src/aosfxplayer.cpp2
-rw-r--r--src/courtroom.cpp2
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());
}
}