mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- changed subtitle duration to last at least 7 seconds, even for shorter sounds so that there is sufficient time to read them.
This commit is contained in:
parent
222dfd17b7
commit
495f2d9c82
1 changed files with 2 additions and 1 deletions
|
@ -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<int>(7000, S_GetMSLength(soundid));
|
||||
SubtitleCounter = sl * TICRATE / 1000;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue