From 495f2d9c82b4367db4f68624620a84ec78dc51a6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 26 Jul 2019 20:18:01 +0200 Subject: [PATCH] - changed subtitle duration to last at least 7 seconds, even for shorter sounds so that there is sufficient time to read them. --- src/playsim/p_user.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/playsim/p_user.cpp b/src/playsim/p_user.cpp index 8834e423a..6578c2c99 100644 --- a/src/playsim/p_user.cpp +++ b/src/playsim/p_user.cpp @@ -449,7 +449,8 @@ void player_t::SetSubtitle(int num, FSoundID soundid) if (text != nullptr) { SubtitleText = lumpname; - SubtitleCounter = soundid == 0 ? 7 * TICRATE : S_GetMSLength(soundid) * TICRATE / 1000; + int sl = soundid == 0 ? 7000 : std::max(7000, S_GetMSLength(soundid)); + SubtitleCounter = sl * TICRATE / 1000; } }