summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalax1@gmail.com>2017-05-17 10:09:51 -0400
committerPikalaxALT <pikalax1@gmail.com>2017-05-17 10:09:51 -0400
commit33b3feeaae66283b1ccdb1a790d70dbb92873705 (patch)
treedd7177ff03eb4a115b54ce0b55860d9c72f185d8 /src
parentb8a599de30f07d9008220f12758481ee8a8a6f3a (diff)
sub_80BF588
Diffstat (limited to 'src')
-rw-r--r--src/tv.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/tv.c b/src/tv.c
index 490b904ce..8958a003c 100644
--- a/src/tv.c
+++ b/src/tv.c
@@ -341,6 +341,35 @@ void sub_80BF55C(TVShow tvShow[], u8 showidx)
}
}
+void sub_80BF588(TVShow tvShow[])
+{
+ u8 showidx;
+ u8 showidx2;
+ for (showidx=0; showidx<4; showidx++) {
+ if (tvShow[showidx].common.var00 == 0) {
+ for (showidx2=showidx+1; showidx2<5; showidx2++) {
+ if (tvShow[showidx2].common.var00 != 0) {
+ tvShow[showidx] = tvShow[showidx2];
+ sub_80BF55C(tvShow, showidx2);
+ break;
+ }
+ }
+ }
+ }
+ for (showidx=5; showidx<24; showidx++) {
+ if (tvShow[showidx].common.var00 == 0) {
+ for (showidx2=showidx+1; showidx2<24; showidx2++) {
+ if (tvShow[showidx2].common.var00 != 0) {
+ tvShow[showidx] = tvShow[showidx2];
+ sub_80BF55C(gSaveBlock1.tvShows, showidx2);
+ break;
+ }
+ }
+ }
+ }
+
+}
+
asm(".section .text_c");