diff options
author | PikalaxALT <pikalax1@gmail.com> | 2017-05-17 10:09:51 -0400 |
---|---|---|
committer | PikalaxALT <pikalax1@gmail.com> | 2017-05-17 10:09:51 -0400 |
commit | 33b3feeaae66283b1ccdb1a790d70dbb92873705 (patch) | |
tree | dd7177ff03eb4a115b54ce0b55860d9c72f185d8 /src | |
parent | b8a599de30f07d9008220f12758481ee8a8a6f3a (diff) |
sub_80BF588
Diffstat (limited to 'src')
-rw-r--r-- | src/tv.c | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -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"); |