Bug 358694 - Can teleport ball when coming out of pause
Summary: Can teleport ball when coming out of pause
Status: CONFIRMED
Alias: None
Product: kollision
Classification: Applications
Component: general (other bugs)
Version First Reported In: 0.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Paolo Capriotti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-28 17:44 UTC by John Eric Sanders
Modified: 2016-02-04 13:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Eric Sanders 2016-01-28 17:44:12 UTC
When the game comes out of a pause event (either through a pause key press or by the window losing focus [mine was through focus-follows-mouse, and mousing over a different window]), the player ball will appear under the new location of the mouse.  This can be used to hide in one corner of the playing field, then teleport to a new (hopefully safe) location.


Reproducible: Always

Steps to Reproduce:
Method A
1.Pause game with P keypress
2.Move mouse
3.Unpause game

Method B
1.  Set focus-follows-mouse to TRUE
2.  Place a window from any other application next to play field.
3. During play, move mouse to other application's window.
4.  Continue from step 2 in Method A.

Actual Results:  
Player ball escaped danger, teleporting to new location.

Expected Results:  
Teleportation should not be allowed.

Suggested fix -- display the player ball during pause events, and only allow coming out of pause when mouse is over the ball.
Comment 1 Frederik Schwarzer 2016-02-04 13:19:49 UTC
Hmm, not sure how a fix for this could look like.

One reasoning might be that this is not a competitive online game with global stats and if you wanted to cheat against yourself, you could just edit ~/.config/kollisionrc and add your preferred high score. :)

Or would it be feasable to relocate the mouse cursor?