mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
Tetris: simplify MoveDown(), don't be stupid
This commit is contained in:
parent
fff9118e17
commit
ee754ed241
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user