made the game over screens nicer

This commit is contained in:
devZoGok
2025-06-22 14:27:13 +03:00
parent 388f76a865
commit 617c137a8d
6 changed files with 60 additions and 46 deletions
+4 -1
View File
@@ -56,13 +56,16 @@ namespace battleship{
}
Map::Minimap::~Minimap(){
Node *guiNode = Root::getSingleton()->getGuiNode();
for(Node *node : depositIcons){
Root::getSingleton()->getGuiNode()->dettachChild(node);
guiNode->dettachChild(node);
delete node;
}
depositIcons.clear();
guiNode->dettachChild(camIcon);
delete camIcon;
}