Tetris: simplify MoveDown(), don't be stupid

This commit is contained in:
nick black 2020-03-25 23:10:31 -04:00
parent fff9118e17
commit ee754ed241
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 5 additions and 4 deletions

View File

@ -2559,6 +2559,9 @@ up someday **FIXME**.
* *Q:* Why isn't there an `ncplane_box_yx()`? Do you hate orthogonality, you dullard?
* *A:* `ncplane_box()` and friends already have far too many arguments, you monster.
* *Q:* You seem a creative guy. Why the least creative name ever?
* *A:* I really didn't expect this to go anywhere.
## Supplemental material
### Useful links

View File

@ -14,7 +14,7 @@ bool PieceStuck() {
continue;
}
const char* egc = curpiece_->get_extended_gcluster(piecec);
if(strcmp(egc, "") && strcmp(egc, "")){
if(strcmp(egc, "")){
continue;
}
int cmpy = y, cmpx = x; // need game area coordinates via translation
@ -25,9 +25,7 @@ bool PieceStuck() {
}
if(c.get().gcluster){
if(c.get().gcluster != ' '){
if(strcmp(board_->get_extended_gcluster(c), "")){
return true;
}
return true;
}
}
}