diff --git a/th03/chars/chars.h b/th03/chars/chars.h new file mode 100644 index 00000000..ec38ec63 --- /dev/null +++ b/th03/chars/chars.h @@ -0,0 +1,12 @@ +typedef enum { + PLAYCHAR_REIMU = 0 + PLAYCHAR_MIMA = 1 + PLAYCHAR_MARISA = 2 + PLAYCHAR_ELLEN = 3 + PLAYCHAR_KOTOHIME = 4 + PLAYCHAR_KANA = 5 + PLAYCHAR_RIKAKO = 6 + PLAYCHAR_CHIYURI = 7 + PLAYCHAR_YUMEMI = 8 + PLAYCHAR_COUNT = 9 +} playchars_t; diff --git a/th03/chars/chars.inc b/th03/chars/chars.inc new file mode 100644 index 00000000..439e77ca --- /dev/null +++ b/th03/chars/chars.inc @@ -0,0 +1,10 @@ +PLAYCHAR_REIMU = 0 +PLAYCHAR_MIMA = 1 +PLAYCHAR_MARISA = 2 +PLAYCHAR_ELLEN = 3 +PLAYCHAR_KOTOHIME = 4 +PLAYCHAR_KANA = 5 +PLAYCHAR_RIKAKO = 6 +PLAYCHAR_CHIYURI = 7 +PLAYCHAR_YUMEMI = 8 +PLAYCHAR_COUNT = 9 diff --git a/th03/th03.inc b/th03/th03.inc index 382fae41..05f4ffdf 100644 --- a/th03/th03.inc +++ b/th03/th03.inc @@ -3,3 +3,4 @@ include th03/defconv.inc include th03/mem.inc include th03/math/randring.inc include th03/hardware/input.inc +include th03/chars/chars.inc diff --git a/th03_main.asm b/th03_main.asm index 116b757b..8235f18a 100644 --- a/th03_main.asm +++ b/th03_main.asm @@ -875,7 +875,7 @@ loc_9D85: mov al, [bx] mov [di+17h], al mov bx, [bp+var_2] - cmp bx, 8 + cmp bx, PLAYCHAR_COUNT - 1 ja short loc_9E23 add bx, bx jmp cs:off_9E99[bx]