diff --git a/src/dialogs.c b/src/dialogs.c index 055c341..fa93bdb 100644 --- a/src/dialogs.c +++ b/src/dialogs.c @@ -12,7 +12,7 @@ void showtext(Game *game, bopti_image_t *face, char *text) { dfont(&FONT_USED); unsigned int i, n, y = 1, l = 0; int line_max_chars; - unsigned int max_lines_amount = BOX_HEIGHT/FONT_USED.line_height; + unsigned int max_lines_amount = (BOX_HEIGHT-1)/FONT_USED.line_height; const char *c; /* Run a little fancy animation. */ for(i=0;i