Tetris: use new API
This commit is contained in:
@@ -279,7 +279,7 @@ std::shared_ptr< TetrisPiece > TetrisPiece::copySelf() {
|
||||
auto ret = std::make_shared< TetrisPiece >();
|
||||
for ( int i = 0; i < 4; i++ ) {
|
||||
auto block = pieces[i]->copyInScene();
|
||||
block->centerX();
|
||||
block->setAlignment(SDLPP::OBJ_CENTER, SDLPP::OBJ_CENTER);
|
||||
ret->addBlockInPos( block, pieces_rel_position[i] );
|
||||
}
|
||||
if ( !rotate_allowed )
|
||||
|
||||
Reference in New Issue
Block a user