Better to get Width and Height from $21 and $20 of the story file header.
authorDavid Griffith <dave@661.org>
Fri, 31 May 2019 04:25:09 +0000 (21:25 -0700)
committerDavid Griffith <dave@661.org>
Fri, 31 May 2019 04:25:09 +0000 (21:25 -0700)
The locations of $22 and $24 in the story file header are for screen
width and screen height.  This is often synonymous with columns and
rows, but is not guaranteed.  It is better to get these numbers from $21
and $20 which are explicitly stated to be for screen columns and screen
rows.

kitten.inf

index 52272732d1b0e6d4ef038f243382b72844b80790..89ce7e3a32b782a5e6b1e9f5cac2dd57bc5f0902 100644 (file)
@@ -115,8 +115,8 @@ Global Real_Release = 0;
 
        Real_Release = (0-->1)&$03ff;
 
-       Width = $22-->0;
-       Height = $24-->0;
+       Width = $21->0;
+       Height = $20->0;
 
        main_menu();    
        while (true) {