summaryrefslogtreecommitdiff
path: root/src/easy_chat.c
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-06-20 20:41:33 -0400
committerGitHub <noreply@github.com>2017-06-20 20:41:33 -0400
commit4ba573ed1eba7c37160ce6107d95447f42902385 (patch)
tree5973f1e72156bb75cb6561a11dd7f333b90fcb3f /src/easy_chat.c
parent13b02fc8232ce61062afe46ca13a1930a3bbc286 (diff)
parentb22e5219ba01c70da9a03397430bff10d0b99060 (diff)
Merge branch 'master' into patch-1
Diffstat (limited to 'src/easy_chat.c')
-rw-r--r--src/easy_chat.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/easy_chat.c b/src/easy_chat.c
index b21b00368..cc2cd7030 100644
--- a/src/easy_chat.c
+++ b/src/easy_chat.c
@@ -1,6 +1,5 @@
#include "global.h"
#include "easy_chat.h"
-#include "asm.h"
#include "data2.h"
#include "event_data.h"
#include "field_message_box.h"
@@ -11,17 +10,9 @@
#include "strings2.h"
#include "text.h"
-u8 sub_80EB37C(u16);
-u8 sub_80EB8C0(void);
-u8 sub_80EB868(u8);
-u16 sub_80EAE88(u8);
-void sub_80EB890(u8);
-u16 sub_80EB784(u16 group);
-u8 sub_80EAD7C(u8 group);
static bool8 sub_80EB680(u16 *, u16, u16, u16);
static u16 sub_80EB9D8(void);
static u16 sub_80EB960(void);
-u16 sub_80EB72C(u16);
extern void *gEasyChatGroupWords[];
extern const u8 gEasyChatGroupSizes[];
@@ -216,15 +207,15 @@ void unref_sub_80EB684(u8 arg0, u16 arg1) {
{
case 5:
c = 6;
- ptr = (u16*)((void *)&gSaveBlock1.tvShows.shows[arg1] + 0x04);
+ ptr = (u16*)((void *)&gSaveBlock1.tvShows[arg1] + 0x04);
break;
case 7:
c = 2;
- ptr = (u16*)((void *)&gSaveBlock1.tvShows.shows[arg1] + 0x1C);
+ ptr = (u16*)((void *)&gSaveBlock1.tvShows[arg1] + 0x1C);
break;
case 8:
c = 1;
- ptr = (u16*)((void *)&gSaveBlock1.tvShows.shows[arg1] + 0x02);
+ ptr = (u16*)((void *)&gSaveBlock1.tvShows[arg1] + 0x02);
break;
default:
@@ -471,7 +462,7 @@ static u16 sub_80EB9D8(void) {
{
const u16 dexNum = SpeciesToNationalPokedexNum(*speciesList);
- const u8 local2 = sub_8090D90(dexNum, 0);
+ const u8 local2 = GetNationalPokedexFlag(dexNum, 0);
if (local2)
{