mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
made the game over screens nicer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user