From 501dca758615e522eeb9d1048367aaf96cf334f0 Mon Sep 17 00:00:00 2001 From: jeffman Date: Sun, 29 Sep 2019 15:20:19 -0400 Subject: [PATCH] Complete changes for nine sprites --- src/c/title.c | 2 +- src/c/title.h | 10 +++---- src/data/m2-title-text-constants.bin | Bin 140 -> 156 bytes src/m2-hack.asm | 39 ++++++++++++++++++++++++--- 4 files changed, 41 insertions(+), 10 deletions(-) diff --git a/src/c/title.c b/src/c/title.c index 458c4bf..d4058e2 100644 --- a/src/c/title.c +++ b/src/c/title.c @@ -17,7 +17,7 @@ void title_text_sequence( return; } - for (int i = 0; i < 8; i++) + for (int i = 0; i < 9; i++) { int x_start = coords->x_start[i]; int x_end = coords->x_end[i]; diff --git a/src/c/title.h b/src/c/title.h index e54ecef..fc87f3c 100644 --- a/src/c/title.h +++ b/src/c/title.h @@ -5,10 +5,10 @@ typedef struct TITLE_COORD_TABLE { int unknown_a[3]; - int y_end[8]; - int y_start[8]; - int x_end[8]; - int x_start[8]; + int y_end[9]; + int y_start[9]; + int x_end[9]; + int x_start[9]; } TITLE_COORD_TABLE; typedef struct TITLE_SPRITE { @@ -26,7 +26,7 @@ typedef struct TITLE_EXTENDED { unsigned short *pal_buffer[5]; byte unknown_a[0x70]; int sequence; - TITLE_SPRITE sprites[8]; + TITLE_SPRITE sprites[9]; int unknown[0x16]; } TITLE_EXTENDED; diff --git a/src/data/m2-title-text-constants.bin b/src/data/m2-title-text-constants.bin index 01c927ab37579e4b6873f321a25833c8728fb907..db2000eb8c788b08f409d20d9942c3d8cf181344 100644 GIT binary patch delta 22 dcmeBSoWnT5XQBefL>~plQxh|lSyY)B7ywUQ1