]> 4ch.mooo.com Git - 16.git/commitdiff
added XMS support from a small XMS library
authorsparky4 <sparky4@lappy4.4ch.mooo.com>
Tue, 9 Dec 2014 18:47:55 +0000 (12:47 -0600)
committersparky4 <sparky4@lappy4.4ch.mooo.com>
Tue, 9 Dec 2014 18:47:55 +0000 (12:47 -0600)
Needs to clean up after itself when quiting!
modified:   scroll.exe
modified:   src/scroll.c

scroll.exe
src/scroll.c

index e240c28d68fd74cc4a5b470f9ecb7ba4af131bd9..1dc1f92cd939335737ea1e6a9ad1718968a615b8 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index c214348e0d456709fe8eb732ebb6e3574540c799..5cde23b30b23d9b63f25be45e481c15612c1e107 100644 (file)
@@ -452,7 +452,7 @@ void main() {
                nosound();\r
        }
        if(player.q == (TILEWH/SPEED)+1 && player.d > 0 && (player.triggerx == 5 && player.triggery == 5)){ player.hp--; }
-       if(keyp(0x0E)) while(1){ if(xmsmalloc(24)) break; }\r
+       //if(keyp(0x0E)) while(1){ if(xmsmalloc(24)) break; }\r
        }\r
 \r
        /* fade back to text mode */\r
@@ -475,7 +475,8 @@ void main() {
        printf("player.d: %d\n", player.d);\r
        printf("temporary player sprite 0: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=45556867\n");\r
        printf("temporary player sprite 1: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=44606385\n");\r
-       printf("\n");\r
+       printf("\n");
+       xmsfree(&map);\r
        switch(detectcpu())\r
        {\r
                case 0: cpus = "8086/8088 or 186/88"; break;\r