summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalax1@gmail.com>2017-05-16 14:41:54 -0400
committerPikalaxALT <pikalax1@gmail.com>2017-05-16 14:41:54 -0400
commit81c06ecc1412f96d8da5a4597c96a814d4613620 (patch)
tree3e8fe61a08b20452846be785bb4f52408a78812a /src
parent59023fb934d7f7e193cae719ec1f587ad7eaa93e (diff)
sub_80BBB50
Diffstat (limited to 'src')
-rwxr-xr-xsrc/secret_base_80bb4ac.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/secret_base_80bb4ac.c b/src/secret_base_80bb4ac.c
index b5790ef4d..617b35202 100755
--- a/src/secret_base_80bb4ac.c
+++ b/src/secret_base_80bb4ac.c
@@ -2,6 +2,7 @@
#include "event_data.h"
#include "rom4.h"
#include "asm.h"
+#include "script.h"
#include "vars.h"
#include "text.h"
#include "field_player_avatar.h"
@@ -22,6 +23,7 @@ extern const struct {
} gUnknown_083D1358[7];
extern const u8 gUnknown_083D1374[48];
extern void *gUnknown_0300485C;
+extern u8 sub_807D770(void);
void sub_80BB4AC(struct SecretBaseRecord *record) { // 080bb4ac
@@ -241,3 +243,11 @@ u8 sub_80BBB24(void) {
return 0;
return 1;
}
+
+void sub_80BBB50(u8 taskid) {
+ FieldObjectTurn(&(gMapObjects[gPlayerAvatar.mapObjectId]), 2);
+ if (sub_807D770() == 1) {
+ EnableBothScriptContexts();
+ DestroyTask(taskid);
+ }
+}