woot, thanks

compiles just fine now
Code:
printf("usage: %0 bspfile [ minx maxx miny maxy]\n",argv[0]);
should be
Code:
printf("usage: %s bspfile minx maxx miny maxy\n",argv[0]);
since you require minx/maxx/miny/maxy to be defined, prevents confusion over the requirement.
and %0 should be %s

HTH
nice work
