summaryrefslogtreecommitdiff
path: root/lisp/play/tetris.el
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2019-10-20 19:01:33 +0200
committerStefan Kangas <stefankangas@gmail.com>2019-10-20 19:09:15 +0200
commitb0af024bb7b2c652ceeb60789edcf4c2bf8c0605 (patch)
tree0b3d8e808282d2ff58f72b2afd42ff5b2742f054 /lisp/play/tetris.el
parent5ddbd8d191e7e38167a63728c6ead5a6401c63f6 (diff)
downloademacs-b0af024bb7b2c652ceeb60789edcf4c2bf8c0605.tar.gz
Disable pause/resume from menu in snake and tetris
* lisp/play/tetris.el (tetris--menu-def): * lisp/play/snake.el (snake--menu-def): Disable pause/resume from menu.
Diffstat (limited to 'lisp/play/tetris.el')
-rw-r--r--lisp/play/tetris.el17
1 files changed, 11 insertions, 6 deletions
diff --git a/lisp/play/tetris.el b/lisp/play/tetris.el
index b5b77721ece..ea42e1297fd 100644
--- a/lisp/play/tetris.el
+++ b/lisp/play/tetris.el
@@ -289,12 +289,17 @@ each one of its four blocks.")
["End game" tetris-end-game
:active (tetris-active-p)
:help "End the current Tetris game"]
- ["Pause" tetris-pause-game
- :active (and (tetris-active-p) (not tetris-paused))
- :help "Pause running Tetris game"]
- ["Resume" tetris-pause-game
- :active (and (tetris-active-p) tetris-paused)
- :help "Resume paused Tetris game"])
+ ;; FIXME: Pause and resume from the menu currently doesn't work
+ ;; very well and is therefore disabled. The game continues
+ ;; running while navigating the menu. See also
+ ;; `snake--menu-def' which has the same problem.
+ ;; ["Pause" tetris-pause-game
+ ;; :active (and (tetris-active-p) (not tetris-paused))
+ ;; :help "Pause running Tetris game"]
+ ;; ["Resume" tetris-pause-game
+ ;; :active (and (tetris-active-p) tetris-paused)
+ ;; :help "Resume paused Tetris game"]
+ )
"Menu for `tetris'. Used to initialize menus.")
(easy-menu-define