From 63bae5c5047b34f79fcd1007ff51ffaf2bba781e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Tue, 18 May 2021 20:34:27 +0200 Subject: [PATCH] update --- source/director.cpp | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/source/director.cpp b/source/director.cpp index 8eeb657..da3d6f7 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -448,23 +448,28 @@ void Director::runGame() void Director::run() { + const std::string text = "espaƱa"; + printf("lenght = %d\n", text.length()); + for (int i = 0; i < text.length(); i++) + printf("%d - %d\n", i, (unsigned int)text[i]); + // Bucle principal - while (!(getSection() == PROG_SECTION_QUIT)) - { - switch (getSection()) - { - case PROG_SECTION_LOGO: - runLogo(); - break; - case PROG_SECTION_INTRO: - runIntro(); - break; - case PROG_SECTION_TITLE: - runTitle(); - break; - case PROG_SECTION_GAME: - runGame(); - break; - } - } + //while (!(getSection() == PROG_SECTION_QUIT)) + //{ + // switch (getSection()) + // { + // case PROG_SECTION_LOGO: + // runLogo(); + // break; + // case PROG_SECTION_INTRO: + // runIntro(); + // break; + // case PROG_SECTION_TITLE: + // runTitle(); + // break; + // case PROG_SECTION_GAME: + // runGame(); + // break; + // } + //} } \ No newline at end of file