451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
|
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
|
-
+
+
+
|
i=fgetc(stdin);
i|=fgetc(stdin)<<8;
levelid[ord]=i;
sprintf(nam,"%d.LVL",i);
hamarc_begin(fp);
fputc(0,fp); fputc(0,fp); // Level version
fputc(ord,fp); fputc(ord>>8,fp); // Level code
fputc(29,fp); fputc(21,fp); // Width/height
fputc(28,fp); fputc(20,fp); // One less than width/height
// (Width/height can each be up to 64 (stored as 63). Bit6 and bit7 of
// these numbers are extra header flags, currently unused.)
i=fgetc(stdin);
i|=fgetc(stdin)<<8;
// fputc(17,fp); // Select proportional font
while(i--) {
switch(j=fgetc(stdin)) {
case 14:
i-=4;
|