aboutsummaryrefslogtreecommitdiff
path: root/cube.c
diff options
context:
space:
mode:
authorJacob Nevins <jacobn@chiark.greenend.org.uk>2005-05-26 13:40:38 +0000
committerJacob Nevins <jacobn@chiark.greenend.org.uk>2005-05-26 13:40:38 +0000
commit865e8ad6ca3d83ad2a585ceeb1809e9f68c18a20 (patch)
tree9944ed8b60fc7844d9c403168f1849756b5de61f /cube.c
parenta1be37343cfab49053396a3a70c7cca14d6f376f (diff)
downloadpuzzles-865e8ad6ca3d83ad2a585ceeb1809e9f68c18a20.zip
puzzles-865e8ad6ca3d83ad2a585ceeb1809e9f68c18a20.tar.gz
puzzles-865e8ad6ca3d83ad2a585ceeb1809e9f68c18a20.tar.bz2
puzzles-865e8ad6ca3d83ad2a585ceeb1809e9f68c18a20.tar.xz
Add origin-shifting (Shift+cursors) and source-shifting (Ctrl+cursors) to Net.
(Adding modifier+cursors handling has had minor knock-on effects on the other puzzles, so that they can continue to ignore modifiers.) (An unfortunate side effect of this is some artifacts in exterior barrier drawing; notably, a disconnected corner can now appear at the corner of the grid under some circumstances. I haven't found a satisfactory way round this yet.) [originally from svn r5844]
Diffstat (limited to 'cube.c')
-rw-r--r--cube.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cube.c b/cube.c
index 12e3ece..ddf5527 100644
--- a/cube.c
+++ b/cube.c
@@ -1013,6 +1013,8 @@ static game_state *make_move(game_state *from, game_ui *ui,
int i, j, dest, mask;
struct solid *poly;
+ button = button & (~MOD_MASK | MOD_NUM_KEYPAD);
+
/*
* All moves are made with the cursor keys or numeric keypad.
*/