diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 03:37:36 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 03:37:36 +0000 |
commit | 30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 (patch) | |
tree | 4d8ac7e75ac179a918a76def244de6e3f3314e76 /games/snake | |
parent | 188803394908f222ab3ed8ec32331eb6dd00fd2d (diff) | |
download | FreeBSD-src-30ef9631c5eac7f8254bd3d7ad274d34d9f518b8.zip FreeBSD-src-30ef9631c5eac7f8254bd3d7ad274d34d9f518b8.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'games/snake')
-rw-r--r-- | games/snake/snake/move.c | 8 | ||||
-rw-r--r-- | games/snake/snake/snake.c | 16 |
2 files changed, 12 insertions, 12 deletions
diff --git a/games/snake/snake/move.c b/games/snake/snake/move.c index ceaf3e8..4e143f1 100644 --- a/games/snake/snake/move.c +++ b/games/snake/snake/move.c @@ -200,7 +200,7 @@ struct point *sp; if (sp->col > cursor.col)right(sp); else{ distance = (cursor.col -sp->col)*BSlength; - if (((TA) && + if (((TA) && (distance > tfield+((sp->col)&7)*NDlength) ) || (((cursor.col)*NDlength) < distance) @@ -232,7 +232,7 @@ struct point *sp; } if (((sp->line << 1) > cursor.line + LINES+1 + f) && (LL != 0)){ /* home,rlf quicker than lf - * (LINES+1 - sp->line + f < sp->line - cursor.line) + * (LINES+1 - sp->line + f < sp->line - cursor.line) */ if (cursor.line > f + 1){ /* is home faster than wraparound lf? @@ -271,7 +271,7 @@ struct point *sp; if (BW && (CM == 0) && ((sp->col << 1) - field > (COLUMNS - 8) << 1 ) ){ - if (cursor.line == 0){ + if (cursor.line == 0){ outch('\n'); } outch('\r'); @@ -493,7 +493,7 @@ char ch;{ } } - + outch(c) { putchar(c); diff --git a/games/snake/snake/snake.c b/games/snake/snake/snake.c index b99da10..c41ee05 100644 --- a/games/snake/snake/snake.c +++ b/games/snake/snake/snake.c @@ -195,7 +195,7 @@ mainloop() if (c == '.') { c = lastc; } - if ((Klength > 0) && + if ((Klength > 0) && (c == *KL || c == *KR || c == *KU || c == *KD)) { savec = c; match = 0; @@ -225,7 +225,7 @@ mainloop() if (match == 0) { ungetc(c,stdin); ch = savec; - /* Oops! + /* Oops! * This works if we figure it out on second character. */ break; @@ -355,7 +355,7 @@ mainloop() if (same(&you,&money)) { - char xp[20]; + char xp[20]; struct point z; loot += 25; if(k < repeat) @@ -524,11 +524,11 @@ flushi() { stty(0, &new); } -int mx [8] = { +int mx [8] = { 0, 1, 1, 1, 0,-1,-1,-1}; int my [8] = { -1,-1, 0, 1, 1, 1, 0,-1}; -float absv[8]= { +float absv[8]= { 1, 1.4, 1, 1.4, 1, 1.4, 1, 1.4 }; int oldw=0; @@ -542,7 +542,7 @@ struct point *sp, *np; double v1, v2, vp, max; point(&d,you.col-sp->col,you.line-sp->line); v1 = sqrt( (double) (d.col*d.col + d.line*d.line) ); - w=0; + w=0; max=0; for(i=0; i<8; i++) { @@ -584,7 +584,7 @@ struct point *sp, *np; else vp -= wt[i]; if (i==8) { - pr("failure\n"); + pr("failure\n"); i=0; while (wt[i]==0) i++; } @@ -803,7 +803,7 @@ pushsnake() } return(0); } - + chk(sp) struct point *sp; { |