summaryrefslogtreecommitdiff
path: root/src/tv.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2017-05-16 22:36:43 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2017-05-16 22:36:43 -0400
commit1c6396051a016689c568a00ab89b0d15d58f87ce (patch)
tree6d0eccc0596830a21154ca31281d2d31a78f2434 /src/tv.c
parent1114be138b080dee4e3bc9a9827b1abf2031b34f (diff)
ClearTVShowData
Diffstat (limited to 'src/tv.c')
-rw-r--r--src/tv.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tv.c b/src/tv.c
index c0d4bde4d..c312091e0 100644
--- a/src/tv.c
+++ b/src/tv.c
@@ -40,6 +40,24 @@ extern u8 gSpeciesNames[][11];
extern u8 *gTVPokemonOutbreakTextGroup[];
extern struct OutbreakPokemon gPokeOutbreakSpeciesList[5];
+extern void sub_80BEBF4(void);
+
+void ClearTVShowData(void)
+{
+ u8 showidx;
+ u8 extradataidx;
+ for (showidx=0; showidx<25; showidx++) {
+ gSaveBlock1.tvShows[showidx].common.var00 = 0;
+ gSaveBlock1.tvShows[showidx].common.var01 = 0;
+ for (extradataidx=0; extradataidx<34; extradataidx++) {
+ gSaveBlock1.tvShows[showidx].common.pad02[extradataidx] = 0;
+ }
+ }
+ sub_80BEBF4();
+}
+
+asm(".section .text_a");
+
void sub_80BE478(void)
{
u16 playerNameLength;