From dc819016a60aa68e9522308e7f896ec09a7ad6b7 Mon Sep 17 00:00:00 2001 From: zvon Date: Sat, 12 Sep 2020 12:57:58 +0200 Subject: [PATCH] TETRIS: when copySelf, set hidden/disableRotation properly --- tetris/custom_classes.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tetris/custom_classes.hpp b/tetris/custom_classes.hpp index 31e41f3..451f2e3 100644 --- a/tetris/custom_classes.hpp +++ b/tetris/custom_classes.hpp @@ -213,6 +213,9 @@ public: block->centerX(); ret->addBlockInPos(block, pieces_rel_position[i]); } + if(!rotate_allowed) + ret->disableRotation(); + ret->setHidden(_hidden); return ret; } void destroy() {