Tetris

Check-in [08519c34f6]
Login

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

Overview
Comment:Handle a couple of paths where SOstr may not be set
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:08519c34f6e4d8273d909288354f87e46258ba3bdb7bb842f621973ec7c41720
User & Date: ajv-899-334-8894@vsta.org 2008-10-26 19:50:12
Context
2008-10-28
02:37
Add "shadow" option -h to show where piece would land if dropped check-in: 25baf927f6 user: ajv-899-334-8894@vsta.org tags: trunk
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
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to screen.c.

408
409
410
411
412
413
414

415

416
417
418
419
420
421
422
423
424
425
426
427

428

429
430
431
432
433
434
435
		    moveto(i, c-1); putstr("          ");
		}

		moveto(r-3, c-2);
		putstr("Next shape:");
						
		/* draw */

		putpad(SOstr);

		moveto(r, 2*c);
		putstr("  ");
		for(i=0; i<3; i++) {
			t = c + r*B_COLS;
			t += nextshape->off[i];

			tr = t / B_COLS;
			tc = t % B_COLS;

			moveto(tr, 2*tc);
			putstr("  ");
		}

		putpad(SEstr);

	}
	
	/*
	 * Repaint the actual board
	 *
	 * "bp" Points at the updated board contents
	 * "sp" Points at what was last painted on the screen







>
|
>












>
|
>







408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
		    moveto(i, c-1); putstr("          ");
		}

		moveto(r-3, c-2);
		putstr("Next shape:");
						
		/* draw */
		if (SOstr) {
		    putpad(SOstr);
		}
		moveto(r, 2*c);
		putstr("  ");
		for(i=0; i<3; i++) {
			t = c + r*B_COLS;
			t += nextshape->off[i];

			tr = t / B_COLS;
			tc = t % B_COLS;

			moveto(tr, 2*tc);
			putstr("  ");
		}
		if (SOstr) {
		    putpad(SEstr);
		}
	}
	
	/*
	 * Repaint the actual board
	 *
	 * "bp" Points at the updated board contents
	 * "sp" Points at what was last painted on the screen