TETRIS: when copySelf, set hidden/disableRotation properly
This commit is contained in:
parent
a2160c3735
commit
dc819016a6
@ -213,6 +213,9 @@ public:
|
|||||||
block->centerX();
|
block->centerX();
|
||||||
ret->addBlockInPos(block, pieces_rel_position[i]);
|
ret->addBlockInPos(block, pieces_rel_position[i]);
|
||||||
}
|
}
|
||||||
|
if(!rotate_allowed)
|
||||||
|
ret->disableRotation();
|
||||||
|
ret->setHidden(_hidden);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
void destroy() {
|
void destroy() {
|
||||||
|
Loading…
Reference in New Issue
Block a user