summaryrefslogtreecommitdiff
path: root/Games/Solitaire/SolitaireWidget.cpp
AgeCommit message (Collapse)Author
2020-03-13Solitaire: Fix automatic moving of cardsTill Mayer
A previous change trying to fix an assertion error completely broke the automatic moving of cards, this commit will fix this problem
2020-03-13Solitaire: Minor tweaks to animation x_velocity and bouncynessTill Mayer
2020-03-11Solitaire: Remove redundant check and fix formatting mistakesTill Mayer
2020-03-11Solitaire: Make sure to not add card twice to m_focused_cardsTill Mayer
There is a possibility that the same card gets added twice to m_focused_cards when first mousedown_event fires and then doubleclick_event, without the cards redrawing first. This would cause mouseup_event to try to pop too many cards from the stack, causing an assertion to fail. When the system is laggy there is also a high possibility that mousedown_event would fire twice without redrawing the cards first, causing another assertion to fail. Addditional mousedown_events will just be ignored now.
2020-03-09Games: Added solitaireTill Mayer
Added a solitaire game. Currently there are graphics missing on some of the cards, but the game is fully functional. Press F12 to show the game-over animation manually.