Tetris

Check-in [3313f71725]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Be careful with ?:
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:3313f717255ead1f0224f001099354397848257b01d681bb8280165da63548ef
User & Date: ajv-899-334-8894@vsta.org 2008-10-26 19:49:58
Context
2008-10-26
19:50
Handle a couple of paths where SOstr may not be set check-in: 08519c34f6 user: ajv-899-334-8894@vsta.org tags: trunk
19:49
Be careful with ?: check-in: 3313f71725 user: ajv-899-334-8894@vsta.org tags: trunk
19:35
Break out core game to its own routine check-in: b620c691f6 user: ajv-899-334-8894@vsta.org tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to scores.c.

363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
	(void)printf("\n\t\t\t    Tetris High Scores\n");

	/*
	 * If level == 0, the person has not played a game but just asked for
	 * the high scores; we do not need to check for printing in highlight
	 * mode.  If SOstr is null, we can't do highlighting anyway.
	 */
	me = level && SOstr ? thisuser() : NULL;

	/*
	 * Set times to 0 except for high score on each level.
	 */
	for (i = MINLEVEL; i < NLEVELS; i++)
		levelfound[i] = 0;
	for (i = 0, sp = scores; i < nscores; i++, sp++) {







|







363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
	(void)printf("\n\t\t\t    Tetris High Scores\n");

	/*
	 * If level == 0, the person has not played a game but just asked for
	 * the high scores; we do not need to check for printing in highlight
	 * mode.  If SOstr is null, we can't do highlighting anyway.
	 */
	me = (level && SOstr) ? thisuser() : NULL;

	/*
	 * Set times to 0 except for high score on each level.
	 */
	for (i = MINLEVEL; i < NLEVELS; i++)
		levelfound[i] = 0;
	for (i = 0, sp = scores; i < nscores; i++, sp++) {