simon-git: puzzles (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Fri Mar 29 19:09:49 GMT 2024


TL;DR:
  fd304c5 Net: Fix off-grid dragging, including a segfault

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2024-03-29 19:09:49

commit fd304c53cc45dc05b3f95c20a466e20a7e1c9194
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=fd304c53cc45dc05b3f95c20a466e20a7e1c9194;hp=80aac3104096aee4057b675c53ece8e60793aa90
Author: Chris Boyle <chris at boyle.name>
Date:   Fri Mar 29 18:08:47 2024 +0000

    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.

 net.c | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)



More information about the tartarus-commits mailing list