X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameDraw.cpp;h=76eadb1d82689c281bed9f3ca8db930c7464eb3d;hb=1c7d28a2fc93699ab955ea66203d0c36bba9d977;hp=c7b0ca1ef58644d30412f3f499943f5f8721bb35;hpb=adaf84d76926538d8235c721169a8d8346dff87b;p=lugaru.git diff --git a/Source/GameDraw.cpp b/Source/GameDraw.cpp index c7b0ca1..76eadb1 100644 --- a/Source/GameDraw.cpp +++ b/Source/GameDraw.cpp @@ -1448,12 +1448,10 @@ int Game::DrawGLScene(StereoSide side) } for (i = 0; i < 15; i++) if ((i != 0 || chatting) && displaytime[i] < 4) - for (j = 0; j < displaychars[i]; j++) { + for (j = 0; j < displaytext[i].size(); j++) { glColor4f(1, 1, 1, 4 - displaytime[i]); - if (j < displaychars[i]) { - sprintf (string, "%c", displaytext[i][j]); - text->glPrint(30 + j * 10, 30 + i * 20 + (screenheight - 330), string, 0, 1, screenwidth, screenheight); - } + sprintf (string, "%c", displaytext[i][j]); + text->glPrint(30 + j * 10, 30 + i * 20 + (screenheight - 330), string, 0, 1, screenwidth, screenheight); } } @@ -2038,12 +2036,10 @@ int Game::DrawGLScene(StereoSide side) text->glPrint(30 + (float)(consoleselected) * 10 - offset * 10, 30, string, 0, 1, 1024, 768); } for (i = 0; i < 15; i++) - for (j = 0; j < consolechars[i]; j++) { + for (j = 0; j < consoletext[i].size(); j++) { glColor4f(1, 1, 1, 1 - (float)(i) / 16); - if (j < consolechars[i]) { - sprintf (string, "%c", consoletext[i][j]); - text->glPrint(30 + j * 10 - offset * 10, 30 + i * 20, string, 0, 1, 1024, 768); - } + sprintf (string, "%c", consoletext[i][j]); + text->glPrint(30 + j * 10 - offset * 10, 30 + i * 20, string, 0, 1, 1024, 768); } } }