]> 4ch.mooo.com Git - 16.git/blobdiff - src/scroll.c
modified: makefile
[16.git] / src / scroll.c
index 024b21fa162bc65f0497ede984731207d2d567cc..2d3a1c671e4602ba5eb4a233477b5c4b0614f0d8 100644 (file)
@@ -119,7 +119,7 @@ void main() {
 \r
        /* create the map */
        loadmap("data/test.map", &map/*, 0*/);\r
-       map = allocMap(map.width,map.height); //20x15 is the resolution of the screen you can make maps smaller than 20x15 but the null space needs to be drawn properly
+       //map = allocMap(map.width,map.height); //20x15 is the resolution of the screen you can make maps smaller than 20x15 but the null space needs to be drawn properly
        //if(isEMS()) printf("%d tesuto\n", coretotalEMS());\r
        //++++
        initMap(&map);\r
@@ -608,19 +608,19 @@ initMap(map_t *map) {
        int i;\r
        int tile = 1;\r
        //if(!isEMS() || !checkEMS())\r
-               map->tiles = malloc(sizeof(tiles_t));\r
+//             map->tiles = malloc(sizeof(tiles_t));\r
        //else\r
        //      map->tiles = (tiles_t *)alloc_emem(sizeof(tiles_t));\r
 \r
        /* create the tile set */\r
        //if(!isEMS() || !checkEMS())\r
-               map->tiles->data = malloc(sizeof(bitmap_t));\r
+//             map->tiles->data = malloc(sizeof(bitmap_t));\r
        //else\r
        //      map->tiles->data = (bitmap_t *)alloc_emem(sizeof(bitmap_t));\r
-       map->tiles->data->width = (TILEWH*2);\r
-       map->tiles->data->height= TILEWH;\r
+//     map->tiles->data->width = (TILEWH*2);\r
+//     map->tiles->data->height= TILEWH;\r
        //if(!isEMS() || !checkEMS())\r
-               map->tiles->data->data = malloc((TILEWH*2)*TILEWH);\r
+//             map->tiles->data->data = malloc((TILEWH*2)*TILEWH);\r
        //else\r
        //      map->tiles->data->data = (byte *)alloc_emem((TILEWH*2)*TILEWH);\r
        map->tiles->tileHeight = TILEWH;\r