Commit c95bd3c4ea5fe7b067a54ca4d55decb252219b60

Authored by henyxia
1 parent fc49d661

Retrieving data from BMP

Showing 4 changed files with 7 additions and 1 deletions   Show diff stats
@@ -28,7 +28,7 @@ $(OUTPUT): $(OBJECTS) $(MAP) @@ -28,7 +28,7 @@ $(OUTPUT): $(OBJECTS) $(MAP)
28 bmp2rgb565 $< $@ 28 bmp2rgb565 $< $@
29 29
30 %.boz: %.bmp 30 %.boz: %.bmp
31 - convert -flip $< $@ 31 + cat $< > $@
32 32
33 %.bmpr: %.bmp 33 %.bmpr: %.bmp
34 convert -flip $< $@ 34 convert -flip $< $@
map/main.bmp
No preview for this file type
map/main.xcf
No preview for this file type
@@ -80,6 +80,12 @@ int calculateInteraction(int act, int x, int y) @@ -80,6 +80,12 @@ int calculateInteraction(int act, int x, int y)
80 printx(ERROR, UI, "The selected map is unopenable\n"); 80 printx(ERROR, UI, "The selected map is unopenable\n");
81 return act; 81 return act;
82 } 82 }
  83 +
  84 + fseek(f, x + y*320, SEEK_SET);
  85 +
  86 + printx(DEBUG, UI, "Ret is %02X\n", fgetc(f));
  87 +
  88 + fclose(f);
83 89
84 return act; 90 return act;
85 } 91 }