aboutsummaryrefslogtreecommitdiff
path: root/convfont.c
diff options
context:
space:
mode:
Diffstat (limited to 'convfont.c')
-rw-r--r--convfont.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/convfont.c b/convfont.c
index 211eb30..f48542f 100644
--- a/convfont.c
+++ b/convfont.c
@@ -190,6 +190,18 @@ char damaged_shipshape[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
+/* DAMAGED2.DAT - as above. damage_lorcha randomly picks
+ from the 2 damaged ship shapes. */
+char damaged_shipshape2[] = {
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x42, 0x4e, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x48, 0x4c, 0x56, 0x57, 0x60,
+ 0x00, 0x00, 0x5e, 0x49, 0x4b, 0x57, 0x5f,
+ 0x00, 0x7d, 0x7e, 0x7c, 0x7e, 0x50, 0x7f,
+ 0x00, 0x46, 0xd4, 0x49, 0x4c, 0x5d, 0x47,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
+};
+
void bitswap(unsigned char *b, int lim) {
unsigned char j, k;
// fprintf(stderr, "bitswap(%x, %d)\n", b, lim);
@@ -310,5 +322,9 @@ int main(int argc, char **argv) {
write(i, damaged_shipshape, sizeof(damaged_shipshape));
close(i);
+ i = open("DAMAGED2.DAT", O_WRONLY | O_CREAT, 0666);
+ write(i, damaged_shipshape2, sizeof(damaged_shipshape2));
+ close(i);
+
return 0;
}