diff options
| author | Chris Boyle <chris@boyle.name> | 2024-03-29 18:08:47 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2024-03-29 19:00:19 +0000 |
| commit | fd304c53cc45dc05b3f95c20a466e20a7e1c9194 (patch) | |
| tree | 4c1f969b14678f99ddda5ff46e88b9d69cfc4e4b /pattern.c | |
| parent | 80aac3104096aee4057b675c53ece8e60793aa90 (diff) | |
| download | puzzles-fd304c53cc45dc05b3f95c20a466e20a7e1c9194.zip puzzles-fd304c53cc45dc05b3f95c20a466e20a7e1c9194.tar.gz puzzles-fd304c53cc45dc05b3f95c20a466e20a7e1c9194.tar.bz2 puzzles-fd304c53cc45dc05b3f95c20a466e20a7e1c9194.tar.xz | |
Net: Fix off-grid dragging, including a segfault
When a drag started outside the grid (or no drag has started yet),
ensure the drag state in game_ui says so and bail out accordingly.
Previously, such a drag would manipulate the tile the last valid drag
started from, if any, else segfault.
Also, allow drags that start on-grid and then go off-grid to continue
rotating.
Diffstat (limited to 'pattern.c')
0 files changed, 0 insertions, 0 deletions