From a86aeb00c5838a9e5b62bd7465bc1082ed13146e Mon Sep 17 00:00:00 2001 From: Rob Blanckaert Date: Sun, 3 Mar 2019 19:03:35 -0800 Subject: [PATCH] Fix 3598 (#3607) * Fix 3598 * spelling --- cockatrice/src/replay_timeline_widget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cockatrice/src/replay_timeline_widget.cpp b/cockatrice/src/replay_timeline_widget.cpp index 201c9634..148e2aa4 100644 --- a/cockatrice/src/replay_timeline_widget.cpp +++ b/cockatrice/src/replay_timeline_widget.cpp @@ -65,6 +65,7 @@ void ReplayTimelineWidget::paintEvent(QPaintEvent * /* event */) void ReplayTimelineWidget::mousePressEvent(QMouseEvent *event) { int newTime = static_cast((long)maxTime * (long)event->x() / width()); + newTime -= newTime % 200; // Time should always be a multiple of 200 if (newTime < currentTime) { currentTime = 0; currentEvent = 0;