Corregido el texto de salida del programa

This commit is contained in:
2024-09-15 13:09:00 +02:00
parent 04935c652d
commit 8fc217f0e3

View File

@@ -23,7 +23,7 @@ int main(int argc, char *argv[])
// Destruye el objeto Director
delete director;
const std::string endType = exit == SECTION_OPTIONS_QUIT_NORMAL ? "to terminal" : "shutdown";
const std::string endType = exit == 0 ? "to terminal" : "shutdown";
std::cout << "\nGame end -> " << endType << std::endl;
return exit;