]> 4ch.mooo.com Git - 16.git/commitdiff
modified: scroll.exe
authorsparky4 <sparky4@cock.li>
Fri, 30 Jan 2015 00:00:15 +0000 (18:00 -0600)
committersparky4 <sparky4@cock.li>
Fri, 30 Jan 2015 00:00:15 +0000 (18:00 -0600)
modified:   src/scroll.c

scroll.exe
src/scroll.c

index 706aea7d2f9d5f7435ccf5b582dcf20daa49ad81..126442c80fe9ecda49671b53116360717401ea61 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index b91adf7db218ff5e583009d4e96c867808c92458..9e197f09d455465c3e75cdc8c5c470e7e2b268a6 100644 (file)
@@ -60,7 +60,8 @@ void mapScrollDown(map_view_t *mv, byte offset);
 void mapGoTo(map_view_t *mv, int tx, int ty);\r
 void mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y);\r
 void mapDrawRow(map_view_t *mv, int tx, int ty, word y);\r
-void mapDrawCol(map_view_t *mv, int tx, int ty, word x);\r
+void mapDrawCol(map_view_t *mv, int tx, int ty, word x);
+void qclean();\r
 void animatePlayer(map_view_t *src, map_view_t *dest, /*map_view_t *top, */sword d, short scrolloffsetswitch, int x, int y, int ls, int lp, bitmap_t *bmp);\r
 \r
 #define TILEWH 16\r
@@ -86,8 +87,9 @@ void main() {
        byte *ptr;\r
        actor_t player;\r
        //actor_t npc0;\r
-\r
-       if(isEMS() || checkEMS()){ printf("%d\n", coretotalEMS()); emmhandle = mallocEMS(coretotalEMS()); }\r
+
+//     atexit(qclean());\r
+//     if(isEMS() || checkEMS()){ printf("%d\n", coretotalEMS()); emmhandle = mallocEMS(coretotalEMS()); }\r
 \r
        /* create the map */\r
        map = allocMap(MAPX,MAPY); //20x15 is the resolution of the screen you can make maps smaller than 20x15 but the null space needs to be drawn properly\r
@@ -519,13 +521,13 @@ void main() {
        //xmsfree(spri);\r
        //xmsfree(mask);\r
        //xmsreport();\r
-       if(isEMS())\r
+       /*if(isEMS())\r
        {\r
                printf("%d\n", get_emem());\r
                printf("%d\n", coretotalEMS());\r
                dealloc_emem(emmhandle);\r
                printf("%d\n", coretotalEMS());\r
-       }\r
+       }*/\r
        switch(detectcpu())\r
        {\r
                case 0: cpus = "8086/8088 or 186/88"; break;\r
@@ -776,7 +778,14 @@ mapDrawCol(map_view_t *mv, int tx, int ty, word x) {
        }\r
        i += mv->map->width;\r
        }\r
-}\r
+}
+
+void qclean()
+{
+       modexLeave();\r
+       setkb(0);
+}
+\r
 void\r
 animatePlayer(map_view_t *src, map_view_t *dest, /*map_view_t *top, */sword d, short scrolloffsetswitch, int x, int y, int ls, int lp, bitmap_t *bmp)\r
 {\r