Bug 441273

Summary: Moving platforms snap to incorrect location when [Undo Shot] button pressed
Product: [Applications] kolf Reporter: Vinyarion <kennethdael>
Component: generalAssignee: Stefan Majewsky <majewsky>
Status: REPORTED ---    
Severity: normal CC: kde-games-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Vinyarion 2021-08-21 02:37:23 UTC
SUMMARY
Moving platforms snap to incorrect location when [Undo Shot] button pressed

STEPS TO REPRODUCE
1. Select a course with moving platforms
2. Take a shot
3. Press the [Undo Shot] button

OBSERVED RESULT
Platform track is offset by the point in cycle when button was pressed
P: moving platform
          [--------P>-------]
*button pressed*
                   [--------P>-------]
*wait, take shot*
                   [-<P--------------]
*button pressed*
    [-<P--------------]


EXPECTED RESULT
Platform track does not offset, but position of platform in cycle reverts to when the last shot was made/legal to make
P: moving platform
          [--------P>-------]
*button pressed*
          [--------P>-------]
*wait, take shot*
          [-<P--------------]
*button pressed*
          [-<P--------------]


SOFTWARE/OS VERSIONS
Windows: n/a
macOS: n/a
Linux/KDE Plasma: Ubuntu 20.04
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION