Fix @print_table in non-V6 lower window
authorborg323 <4010067-borg323@users.noreply.gitlab.com>
Fri, 12 Jul 2019 14:43:16 +0000 (17:43 +0300)
committerborg323 <4010067-borg323@users.noreply.gitlab.com>
Fri, 12 Jul 2019 14:43:16 +0000 (17:43 +0300)
This is a direct port of commit 7adcf62693ecfc8439260a7abe62c3d5a190c160
from Windows-Frotz:
https://github.com/DavidKinder/Windows-Frotz/commit/7adcf62693ecfc8439260a7abe62c3d5a190c160

src/common/screen.c

index 51a647328b4504f25abe5298d0e787de448fe9b8..6a8fe9f8b20f9b8d7dd05d108d214542e54cbcb4 100644 (file)
@@ -1239,13 +1239,20 @@ void z_print_table (void)
 
        if (i != 0) {
 
-           flush_buffer ();
-           os_font_data(0, &font_height, &font_width);
-           cwp->y_cursor += font_height;
-           cwp->x_cursor = x;
+           if (h_version != V6 && cwin == 0) {
 
-           update_cursor ();
+               new_line ();
+
+           } else {
+
+               flush_buffer ();
+               os_font_data(0, &font_height, &font_width);
+               cwp->y_cursor += font_height;
+               cwp->x_cursor = x;
 
+               update_cursor ();
+
+           }
        }
 
        for (j = 0; j < zargs[1]; j++) {