Tetris

Check-in [55507ace29]
Login

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

Overview
Comment:Fix Wall
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:55507ace2986821084faf985c49ae31cfcdc7dfbc0e780d0d9e1b9fbc209fbb5
User & Date: ajv-899-334-8894@vsta.org 2014-04-21 15:04:23
Context
2014-09-05
15:31
DEBUG ifdef Double score when you clear the board check-in: b837d6fd00 user: ajv-899-334-8894@vsta.org tags: trunk
2014-04-21
15:04
Fix Wall check-in: 55507ace29 user: ajv-899-334-8894@vsta.org tags: trunk
2008-10-29
00:31
Add doc for -h and "n" key. check-in: a1af86b053 user: ajv-899-334-8894@vsta.org tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tetris.c.

138
139
140
141
142
143
144

145
146
147
148
149
150
151
{
    int pos, c;

    pos = A_FIRST*B_COLS + (B_COLS/2)-1;

    for (;;) {
	/* Display "shadow" of where piece would drop? */

	if (showshadow) {
	    for (c = 1; ; c += 1) {
		if (!fits_in(curshape, pos + B_COLS*c)) {
		    c -= 1;
		    break;
		}
	    }







>







138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
    int pos, c;

    pos = A_FIRST*B_COLS + (B_COLS/2)-1;

    for (;;) {
	/* Display "shadow" of where piece would drop? */
	c = 0;
	if (showshadow) {
	    for (c = 1; ; c += 1) {
		if (!fits_in(curshape, pos + B_COLS*c)) {
		    c -= 1;
		    break;
		}
	    }