Skip to content

Commit

Permalink
Fix minimum answer time
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirKhil committed Dec 21, 2023
1 parent 8f297f4 commit f96b282
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SICore/SICore/Clients/Game/GameLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4500,7 +4500,10 @@ internal void OnSimpleAnswer(string answer)

_gameActions.SendMessageWithArgs(Messages.RightAnswer, ContentTypes.Text, normalizedAnswer);

var answerTime = GetReadingDurationForTextLength(normalizedAnswer.Length);
var answerTime = Math.Max(
GetReadingDurationForTextLength(normalizedAnswer.Length),
_data.Settings.AppSettings.TimeSettings.TimeForRightAnswer * 10);

ScheduleExecution(Tasks.MoveNext, answerTime);
}

Expand Down

0 comments on commit f96b282

Please sign in to comment.