Tetris: remove dead code #421

pull/426/head
nick black 4 years ago
parent 925e416b8d
commit 5955125921
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -6,7 +6,7 @@ bool LineClear(int y){
if(board_->get_at(y, x, &c) < 0){
throw TetrisNotcursesErr("get_at()");
}
if(!c.get().gcluster || c.get().gcluster == ' '){
if(c.is_simple()){
return false;
}
}

@ -40,7 +40,7 @@ void LockPiece(){
throw TetrisNotcursesErr("putc()");
}
c.get().gcluster = 0;
if(board_->putc(dy, x, &c) < 0){
if(board_->putc(dy, x, &c) < 0){ // could just do this at end...
throw TetrisNotcursesErr("putc()");
}
}

@ -18,12 +18,6 @@ bool PieceStuck() {
if(piecec.is_simple()){
continue;
}
///*
const char* egc = curpiece_->get_extended_gcluster(piecec);
if(strcmp(egc, "")){
continue;
}
//*/
int cmpy = y + 1, cmpx = x; // need game area coordinates via translation
curpiece_->translate(*board_, &cmpy, &cmpx);
ncpp::Cell c;

Loading…
Cancel
Save