X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fmaptest.c;h=243eab0b3f23a2bb7cbb4d2b321a2e1d58c2d8ff;hb=0de956727ac86a5ed1f561fe22759bb871582994;hp=f426b2c66bf7f8f5eb161c0d2ee007f2a2355486;hpb=2f1cfb3766a0b1d5e707cc93488dbf276ed48a3e;p=16.git diff --git a/src/maptest.c b/src/maptest.c index f426b2c6..243eab0b 100755 --- a/src/maptest.c +++ b/src/maptest.c @@ -28,10 +28,11 @@ void main(int argc, char *argv[]) { static global_game_variables_t gvar; - map_t map; + static map_t map; #ifdef DUMP #ifdef DUMP_MAP short i; + word k; #endif #endif char *fmt = "Memory available = %u\n"; @@ -48,36 +49,43 @@ main(int argc, char *argv[]) fprintf(stderr, fmt0, _memmax()); fprintf(stderr, "Size of map var = %u\n", _msize(&(gvar.ca.camap.mapsegs))); //fprintf(stderr, "program always crashes for some reason....\n"); - getch(); + //getch(); //loadmap("data/test.map", &map); //newloadmap("data/test.map", &map); CA_loadmap("data/test.map", &map, &gvar); - #ifdef DUMP +#ifdef DUMP fprintf(stdout, "map.width= %d\n", map.width); fprintf(stdout, "map.height= %d\n", map.height); - #ifdef DUMP_MAP + getch(); +#ifdef DUMP_MAP //if(map.width*map.height != 1200) - for(i=0; i<(map.width*map.height); i++) + for(k=0;k