]> 4ch.mooo.com Git - 16.git/commitdiff
commented out the XMS system thingy wwww
authorsparky4 <sparky4@lappy4.4ch.mooo.com>
Tue, 9 Dec 2014 19:26:27 +0000 (13:26 -0600)
committersparky4 <sparky4@lappy4.4ch.mooo.com>
Tue, 9 Dec 2014 19:26:27 +0000 (13:26 -0600)
modified:   scroll.exe
modified:   src/scroll.c

scroll.exe
src/scroll.c

index 1dc1f92cd939335737ea1e6a9ad1718968a615b8..697c964b5dcb562c19cdc746a6e9505bb6ab533a 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index 5cde23b30b23d9b63f25be45e481c15612c1e107..2240325b669cd597262f3086c7aa2e09d7bcda7b 100644 (file)
@@ -496,8 +496,9 @@ allocMap(int w, int h) {
 \r
        result.width =w;\r
        result.height=h;\r
-       if(initxms()) result.data = malloc(sizeof(byte) * w * h);
-       else result.data = xmsmalloc(sizeof(byte) * w * h);\r
+       //if(initxms()) 
+       result.data = malloc(sizeof(byte) * w * h);
+       //else result.data = xmsmalloc(sizeof(byte) * w * h);\r
 \r
        return result;\r
 }\r
@@ -509,16 +510,19 @@ initMap(map_t *map) {
        int x, y;\r
        int i;\r
        int tile = 1;
-       if(initxms()) map->tiles = malloc(sizeof(tiles_t));\r
-       else map->tiles = xmsmalloc(sizeof(tiles_t));\r
+       //if(initxms()) 
+       map->tiles = malloc(sizeof(tiles_t));\r
+       //else map->tiles = xmsmalloc(sizeof(tiles_t));\r
 \r
        /* create the tile set */\r
-       if(initxms()) map->tiles = malloc(sizeof(tiles_t));
-       else map->tiles->data = xmsmalloc(sizeof(bitmap_t));\r
+       //if(initxms()) 
+       map->tiles = malloc(sizeof(tiles_t));
+       //else map->tiles->data = xmsmalloc(sizeof(bitmap_t));\r
        map->tiles->data->width = (TILEWH*2);\r
        map->tiles->data->height= TILEWH;
-       if(initxms()) map->tiles->data->data = malloc((TILEWH*2)*TILEWH);\r
-       else map->tiles->data->data = xmsmalloc((TILEWH*2)*TILEWH);\r
+       //if(initxms()) 
+       map->tiles->data->data = malloc((TILEWH*2)*TILEWH);\r
+       //else map->tiles->data->data = xmsmalloc((TILEWH*2)*TILEWH);\r
        map->tiles->tileHeight = TILEWH;\r
        map->tiles->tileWidth =TILEWH;\r
        map->tiles->rows = 1;\r