billr@saab.CNA.TEK.COM (Bill Randle) (07/19/89)
Submitted-by: Martyn Shortley <martyn%med-image.compsci.bristol.ac.uk@nsfnet-relay.ac.uk>
Posting-number: Volume 7, Issue 40
Archive-name: sun-tetris2.pch1
Patch-To: sun-tetris2: Volume 6, Issue 43
[This has already been posted to the .bugs group; I converted it to
a context diff. -br]
[[Greetings to all tetris players out there.
A couple of bugs have been found in the code.
i) Some blocks in certain orientations had no score defined for them.
ii) The game never speeded up (until you Paused and Restarted).
The fixes for these two bugs are given below. I suggest that if
you implement these bug fixes you do the following :
Start a new high score file.
Refer to your version as "version 1.2" in any correspondence
Special thanks to Steve Jacquot <saj@lucifer.psyc.virginia.edu>,
who found these two bugs.
Regards,
Martyn Shortley]]
#! /bin/sh
# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
# will see the following message at the end:
# "End of shell archive."
# Contents: patches01
# Wrapped by billr@saab on Wed Jul 19 06:17:57 1989
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'patches01' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'patches01'\"
else
echo shar: Extracting \"'patches01'\" \(2122 characters\)
sed "s/^X//" >'patches01' <<'END_OF_FILE'
X*** shape.c.orig Sat Apr 1 09:59:12 1989
X--- shape.c Wed Jul 19 06:12:45 1989
X***************
X*** 27,33 ****
X shape[0].table[1][3] = 4; /* # */
X shape[0].table[2][3] = 4; /* # */
X shape[0].table[3][3] = 4; /* # */
X! shape[0].pointv[2] = 8;
X
X shape[0].width = 4;
X shape[0].height = 1;
X--- 27,33 ----
X shape[0].table[1][3] = 4; /* # */
X shape[0].table[2][3] = 4; /* # */
X shape[0].table[3][3] = 4; /* # */
X! shape[0].pointv[3] = 8;
X
X shape[0].width = 4;
X shape[0].height = 1;
X***************
X*** 77,83 ****
X shape[2].table[1][1] = 6; /* ## */
X shape[2].table[2][1] = 4; /* # */
X shape[2].table[3][1] = 0; /* */
X! shape[2].pointv[0] = 5;
X
X shape[2].table[0][2] = 0; /* */
X shape[2].table[1][2] = 14; /* ### */
X--- 77,83 ----
X shape[2].table[1][1] = 6; /* ## */
X shape[2].table[2][1] = 4; /* # */
X shape[2].table[3][1] = 0; /* */
X! shape[2].pointv[1] = 5;
X
X shape[2].table[0][2] = 0; /* */
X shape[2].table[1][2] = 14; /* ### */
X*** support.c.orig Mon Apr 3 08:52:11 1989
X--- support.c Wed Jul 19 06:14:45 1989
X***************
X*** 172,177 ****
X--- 172,178 ----
X pw_rop(pw, 0, UNIT, xsize, ysize, PIX_SRC, pr, 0, 0);
X pw_rop(pw, 0, 0, xsize, UNIT, CLR, NULL, 0, 0);
X rows++;
X+ update_timer();
X }
X }
X pw_batch_off(pw);
X*** window.c.orig Sat Apr 1 09:59:14 1989
X--- window.c Wed Jul 19 06:16:04 1989
X***************
X*** 29,34 ****
X--- 29,40 ----
X notify_set_itimer_func(me, drop_block, ITIMER_REAL, ITIMER_NULL, ITIMER_NULL);
X }
X
X+ update_timer()
X+ {
X+ stop_timer(); /* Stop processing at old speed */
X+ start_timer(); /* Start processing at new speed */
X+ }
X+
X set_events()
X {
X window_set(canvas, WIN_CONSUME_PICK_EVENTS,
X*** /dev/null Wed Jul 19 06:15:02 1989
X--- patchlevel.h Wed Jul 19 06:11:09 1989
X***************
X*** 0 ****
X--- 1,2 ----
X+ #define PATCHLEVEL 1
X+ #define VERSION 1.2
END_OF_FILE
if test 2122 -ne `wc -c <'patches01'`; then
echo shar: \"'patches01'\" unpacked with wrong size!
fi
# end of 'patches01'
fi
echo shar: End of shell archive.
exit 0