refactored command execution

This commit is contained in:
devZoGok
2024-10-19 17:37:45 +03:00
parent e0b6550787
commit 9362e53c15
9 changed files with 30 additions and 51 deletions
+1 -2
View File
@@ -7,8 +7,7 @@ namespace battleship{
}
void ToggleDebugCommand::execute(){
AbstractCommand::handle();
validate();
AbstractCommand::execute();
Game *game = Game::getSingleton();
game->setDebug(!game->isDebug());