* [ELPA] Patch to package: sokoban
@ 2017-05-25 11:38 Dieter Deyke
0 siblings, 0 replies; only message in thread
From: Dieter Deyke @ 2017-05-25 11:38 UTC (permalink / raw)
To: emacs-devel
From 96ca5427cd2b950008a55bb5586702d40f5c078e Mon Sep 17 00:00:00 2001
From: Dieter Deyke <dieter.deyke@gmail.com>
Date: Thu, 25 May 2017 13:27:08 +0200
Subject: [PATCH] fix off-by-1 error in sokoban-draw-score which caused
on-screen score to be truncated
---
packages/sokoban/sokoban.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/packages/sokoban/sokoban.el b/packages/sokoban/sokoban.el
index 6e8bee25c..ae6f845cf 100644
--- a/packages/sokoban/sokoban.el
+++ b/packages/sokoban/sokoban.el
@@ -1,9 +1,9 @@
;;; sokoban.el --- Implementation of Sokoban for Emacs.
-;; Copyright (C) 1998, 2013 Free Software Foundation, Inc.
+;; Copyright (C) 1998, 2013, 2017 Free Software Foundation, Inc.
;; Author: Glynn Clements <glynn.clements@xemacs.org>
-;; Version: 1.4
+;; Version: 1.4.1
;; Created: 1997-09-11
;; Keywords: games
;; Package-Type: multi
@@ -41,6 +41,8 @@
;; Modified: 1998-06-04, added `undo' feature
;; added number of blocks done/total to score and modeline
;; Modified: 2003-06-14, update email address, remove URL
+;; Modified: 2017-05-25, fix off-by-1 error in sokoban-draw-score which
+;; caused on-screen score to be truncated
;; Tested with XEmacs 20.3/4/5 and Emacs 19.34
@@ -517,7 +519,7 @@ static char * player_xpm[] = {
(format "Done: %d/%d"
sokoban-done
sokoban-targets))))
- (dotimes (y 2)
+ (dotimes (y 3)
(let* ((string (aref strings y))
(len (length string)))
(dotimes (x len)
--
2.11.0
--
Dieter Deyke
mailto:dieter.deyke@gmail.com
Get my Gnupg key:
gpg --keyserver keys.gnupg.net --recv-keys B116EA20
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-25 11:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-25 11:38 [ELPA] Patch to package: sokoban Dieter Deyke
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).