X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fmaptest.c;h=7649898eb94910c7ad7377811bdab33ecef51f68;hb=fa252ebd82649e4f3bab4a53228828766713ad6c;hp=cba6d07f3280398ed36764099576d5e13962cf35;hpb=3c3fd6c2b3b0792317c432593f370cbafde9d293;p=16.git diff --git a/src/maptest.c b/src/maptest.c index cba6d07f..7649898e 100755 --- a/src/maptest.c +++ b/src/maptest.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -20,10 +20,10 @@ * */ //TODO: ADD MEMORY MANAGER! WWWW -#include "src/lib/mapread.h" +#include "src/lib/16_map.h" #define DUMP -//#define DUMP_MAP +#define DUMP_MAP void main(int argc, char *argv[]) @@ -44,6 +44,7 @@ main(int argc, char *argv[]) fprintf(stdout, "map.width= %d\n", map.width); fprintf(stdout, "map.height= %d\n", map.height); #ifdef DUMP_MAP + if(map.width*map.height != 1200) exit(-3); for(i=0; i<(map.width*map.height); i++) { fprintf(stdout, "%04d[%02d]", i, map.data[i]);