]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/mapread.c
wwww
[16.git] / src / lib / mapread.c
old mode 100644 (file)
new mode 100755 (executable)
index e3f40b4..7fc94d1
@@ -76,12 +76,13 @@ word dump(const char *js, jsmntok_t *t, size_t count, word indent, char *js_sv,
                        bp = bitmapLoadPcx("data/ed.pcx");
                        map->tiles->data = &bp;
                        //map->tiles->data->data = malloc((16/**2*/)*16);
-                       //map->tiles->data->width = (16/**2*/);\r
-                       //map->tiles->data->height= 16;\r
-                       map->tiles->tileHeight = 16;\r
-                       map->tiles->tileWidth = 16;\r
-                       map->tiles->rows = 1;\r
+                       //map->tiles->data->width = (16/**2*/);
+                       //map->tiles->data->height= 16;
+                       map->tiles->tileHeight = 16;
+                       map->tiles->tileWidth = 16;
+                       map->tiles->rows = 1;
                        map->tiles->cols = 1;
+                       map->tiles->debug_text=false;
                        strcpy(js_sv, "data");//strdup(js+t->start);//, t->end - t->start);
                }
                else
@@ -127,7 +128,6 @@ int loadmap(char *mn, map_t *map)
        char *js = NULL;
        size_t jslen = 0;
        char buf[BUFSIZ];
-//---- char *buff = &buf;
        static char js_ss[16];
 
        jsmn_parser p;