Skip to content

Commit

Permalink
v1.0c: Fix a bug in the part-removal code
Browse files Browse the repository at this point in the history
Oops, I forgot to update some of the part addresses in the patch. Fixed
now. Also added copying the source to the output directory in build.sh.
  • Loading branch information
sulix committed Dec 22, 2020
1 parent ec49dc1 commit 31abd85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Commander Keen 1 Randomiser
===========================

Author: David Gow <[email protected]>
Version: 1.0b
Version: 1.0c
Website: https://davidgow.net/keen/randomiser.html


Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ cp RNDKEEN1.BAT $OUTDIR
cp RANDKEEN.EXE $OUTDIR
cp CWSDPMI.EXE $OUTDIR
cp CK1PATCH.EXE $OUTDIR
cp randkeen.c $OUTDIR
6 changes: 3 additions & 3 deletions randkeen.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,9 +578,9 @@ void WritePerItemPatch(FILE *f, int level, int item)
else if (item == K1_T_BATTERY)
fprintf(f, "\t\t$C7 $06 $AA9CW $0000W\n", level);
else if (item == K1_T_VACUUM)
fprintf(f, "\t\t$C7 $06 $AA94W $0000W\n", level);
fprintf(f, "\t\t$C7 $06 $AA96W $0000W\n", level);
else if (item == K1_T_EVERCLEAR)
fprintf(f, "\t\t$C7 $06 $AA94W $0000W\n", level);
fprintf(f, "\t\t$C7 $06 $AA98W $0000W\n", level);

uint8_t end_off = 0x4FA0 - (offset + 13);
fprintf(f, "\t\t$EB $%02x\n\n", end_off);
Expand Down Expand Up @@ -626,7 +626,7 @@ void WritePatchFooter(FILE *f)
void PrintBanner()
{
printf("Keen 1 Randomiser\n");
printf("\tv1.00b\n");
printf("\tv1.00c\n");
printf("\tBy David Gow <[email protected]>\n\n");
}

Expand Down

0 comments on commit 31abd85

Please sign in to comment.