home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!news.service.uci.edu!cerritos.edu!arizona.edu!arizona!azhao
- Newsgroups: alt.sources
- Subject: Generic Tetris Patch 2.1.2 to 2.1.3
- Message-ID: <30260@optima.cs.arizona.edu>
- From: azhao@cs.arizona.edu (Qiang Alex Zhao)
- Date: 21 Jan 93 19:27:07 GMT
- Sender: news@cs.arizona.edu
- Lines: 218
-
-
- Archive-name: gtetris
- Submitted-by: azhao@cs.arizona.edu
-
-
- diff -c tetris.2.1.orig/README tetris.2.1/README
- *** tetris.2.1.orig/README Tue Jan 19 11:36:00 1993
- --- tetris.2.1/README Thu Jan 21 12:17:33 1993
- ***************
- *** 1,5
- GENERIC TETRIS
- ! ============== Yet Another Tetris Game on X, V2.1.2
-
-
- WHY ANOTHER?
-
- --- 1,5 -----
- GENERIC TETRIS
- ! ============== Yet Another Tetris Game on X, V2.1.3
-
-
- WHY ANOTHER?
- ***************
- *** 11,16
-
- Bull DPX/2 System V ?
- DEC 5000 Ultrix 4.2A X11R4
- HP 700 HP-UX 8.07 X11R5
- Iris 4D IRIX 4.0.1 Motif
- Sun4, SPARC SunOS 4.1.x X11R4, X11R5
-
- --- 11,17 -----
-
- Bull DPX/2 System V ?
- DEC 5000 Ultrix 4.2A X11R4
- + DEC Alpha AXP DEC OSF/1 V1.2 ?
- HP 700 HP-UX 8.07 X11R5
- Iris 4D IRIX 4.0.1 Motif
- Sun4, SPARC SunOS 4.1.x X11R4, X11R5
- ***************
- *** 62,70
-
- In previous versions, all number keys on the keypad work. Since I'm
- going to let the user fully configure things like key bindings,
- ! I'll only let those keys on the keypad with label '4', '5', '6'
- ! work for now, and do not include a key for "rotate
- ! counter-clockwise" (sorry :o).
-
- Refer to the man page for detailed command line options.
-
-
- --- 63,70 -----
-
- In previous versions, all number keys on the keypad work. Since I'm
- going to let the user fully configure things like key bindings,
- ! I'll only let a few of them work for now, and do not include a key
- ! for "rotate counter-clockwise" (sorry :o).
-
- Refer to the man page for detailed command line options.
-
- ***************
- *** 85,90
-
- HISTORY -- Oh no, not again: I failed my history course!
- Well ... ACKNOWLEDGEMENTS
-
- [Jan 19, 93] V2.1.2: Improved "paused" mode - so it won't take too
- much CPU time - suggested by Philip JENNINGS
-
- --- 85,95 -----
-
- HISTORY -- Oh no, not again: I failed my history course!
- Well ... ACKNOWLEDGEMENTS
- +
- + [Jan 21, 93] V2.1.3: Two bugs in finding user environment:
- + "endpwent()" by Jari Tavi <jpt@rixrax.enet.dec.com>;
- + "gethostname()" by Johan Vromans <jv@mh.nl>. Added two
- + more arrow keys.
-
- [Jan 19, 93] V2.1.2: Improved "paused" mode - so it won't take too
- much CPU time - suggested by Philip JENNINGS
- Common subdirectories: tetris.2.1.orig/X11 and tetris.2.1/X11
- Common subdirectories: tetris.2.1.orig/bitmaps and tetris.2.1/bitmaps
- diff -c tetris.2.1.orig/tetris.c tetris.2.1/tetris.c
- *** tetris.2.1.orig/tetris.c Tue Jan 19 11:36:49 1993
- --- tetris.2.1/tetris.c Thu Jan 21 12:17:46 1993
- ***************
- *** 105,111
- char *argv[];
- {
- (void) fprintf(stderr,
- ! " GENERIC TETRIS V2.1.2\n");
- (void) fprintf(stderr,
- "Copyright (C) 1992-93 Q. Alex Zhao, azhao@cs.arizona.edu\n");
- (void) fprintf(stderr,
-
- --- 105,111 -----
- char *argv[];
- {
- (void) fprintf(stderr,
- ! " GENERIC TETRIS V2.1.3\n");
- (void) fprintf(stderr,
- "Copyright (C) 1992-93 Q. Alex Zhao, azhao@cs.arizona.edu\n");
- (void) fprintf(stderr,
- ***************
- *** 177,183
- (void) gethostname(myscore.myhost, NAMELEN);
- setpwent();
- pw = getpwuid(getuid());
- - endpwent();
- if (pw == NULL) { /* impossible? */
- (void) sprintf(myscore.myname, "%d", getuid());
- myHome[0] = '.';
-
- --- 177,182 -----
- (void) gethostname(myscore.myhost, NAMELEN);
- setpwent();
- pw = getpwuid(getuid());
- if (pw == NULL) { /* impossible? */
- (void) sprintf(myscore.myname, "%d", getuid());
- myHome[0] = '.';
- ***************
- *** 187,192
- (void) strncpy(myscore.myname, pw->pw_name, NAMELEN);
- (void) strncpy(myHome, pw->pw_dir, FILENAMELEN);
- }
- myscore.myname[NAMELEN - 1] = '\0';
- myscore.myhost[NAMELEN - 1] = '\0';
- myHome[FILENAMELEN - 1] = '\0';
-
- --- 186,192 -----
- (void) strncpy(myscore.myname, pw->pw_name, NAMELEN);
- (void) strncpy(myHome, pw->pw_dir, FILENAMELEN);
- }
- + endpwent();
- myscore.myname[NAMELEN - 1] = '\0';
- myscore.myhost[NAMELEN - 1] = '\0';
- myHome[FILENAMELEN - 1] = '\0';
- ***************
- *** 251,256
- env = &filenamebuf[0];
- (void) strcpy(env, myHome);
- len = strlen(env);
- (void) gethostname(env + len, FILENAMELEN - len);
- }
- homeDB = XrmGetFileDatabase(env);
-
- --- 251,257 -----
- env = &filenamebuf[0];
- (void) strcpy(env, myHome);
- len = strlen(env);
- + env[len++] = '/';
- (void) gethostname(env + len, FILENAMELEN - len);
- }
- homeDB = XrmGetFileDatabase(env);
- diff -c tetris.2.1.orig/tetris.man tetris.2.1/tetris.man
- *** tetris.2.1.orig/tetris.man Tue Jan 19 11:37:02 1993
- --- tetris.2.1/tetris.man Thu Jan 21 12:18:04 1993
- ***************
- *** 1,4
- ! .TH TETRIS 6 "19 Jan 1993, V2.1.2" "Univ of Arizona"
- .SH NAME
- GENERIC TETRIS \- Yet Another Tetris Game on X
- .SH SYNOPSIS
-
- --- 1,4 -----
- ! .TH TETRIS 6 "19 Jan 1993, V2.1" "Univ of Arizona"
- .SH NAME
- GENERIC TETRIS \- Yet Another Tetris Game on X
- .SH SYNOPSIS
- diff -c tetris.2.1.orig/utils.c tetris.2.1/utils.c
- *** tetris.2.1.orig/utils.c Tue Jan 19 10:26:02 1993
- --- tetris.2.1/utils.c Thu Jan 21 12:10:50 1993
- ***************
- *** 232,237
- (unsigned char *) "j", sizeof(unsigned char));
- XRebindKeysym(display, XK_Left, NULL, 0,
- (unsigned char *) "j", sizeof(unsigned char));
- XRebindKeysym(display, XK_R11, NULL, 0,
- (unsigned char *) "k", sizeof(unsigned char));
- XRebindKeysym(display, XK_R12, NULL, 0,
-
- --- 232,241 -----
- (unsigned char *) "j", sizeof(unsigned char));
- XRebindKeysym(display, XK_Left, NULL, 0,
- (unsigned char *) "j", sizeof(unsigned char));
- + XRebindKeysym(display, XK_R8, NULL, 0,
- + (unsigned char *) "k", sizeof(unsigned char));
- + XRebindKeysym(display, XK_Up, NULL, 0,
- + (unsigned char *) "k", sizeof(unsigned char));
- XRebindKeysym(display, XK_R11, NULL, 0,
- (unsigned char *) "k", sizeof(unsigned char));
- XRebindKeysym(display, XK_R12, NULL, 0,
- ***************
- *** 238,243
- (unsigned char *) "l", sizeof(unsigned char));
- XRebindKeysym(display, XK_Right, NULL, 0,
- (unsigned char *) "l", sizeof(unsigned char));
-
- /* create windows */
- attvm = CWBackPixel | CWEventMask | CWDontPropagate | CWCursor;
-
- --- 242,251 -----
- (unsigned char *) "l", sizeof(unsigned char));
- XRebindKeysym(display, XK_Right, NULL, 0,
- (unsigned char *) "l", sizeof(unsigned char));
- + XRebindKeysym(display, XK_Down, NULL, 0,
- + (unsigned char *) " ", sizeof(unsigned char));
- + XRebindKeysym(display, XK_R14, NULL, 0,
- + (unsigned char *) " ", sizeof(unsigned char));
-
- /* create windows */
- attvm = CWBackPixel | CWEventMask | CWDontPropagate | CWCursor;
- --
- = Qiang Alex Zhao ___ . ______
- Computer Science Dept / ) /| ) __// )
- University of Arizona / / /_| / _ // /_ _. ._
- azhao@cs.arizona.edu (__)(_o / (_(_(-'_)( ((____/ (_(_(_(_)
-