summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pokenav_before.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/pokenav_before.c b/src/pokenav_before.c
index c9e4fbe39..de327e07f 100644
--- a/src/pokenav_before.c
+++ b/src/pokenav_before.c
@@ -2792,7 +2792,7 @@ _080EEC0A:\n\
// var6dad and var6dae must be s8 in this func
bool8 sub_80EEC10() {
- if (gMain.newKeys& 0x40) {
+ if (gMain.newKeys & 0x40) {
do {
if (--ewram0_1.var6dad < 0) {
ewram0_1.var6dad = ewram0_1.var6dae - 1;
@@ -2811,3 +2811,19 @@ bool8 sub_80EEC10() {
}
return 0;
}
+
+bool8 sub_80EEC90() {
+ if (gMain.newKeys & 0x40) {
+ if (--ewram0_1.var6dad < 0) {
+ ewram0_1.var6dad = ewram0_1.var6dae - 1;
+ }
+ return 1;
+ }
+ if (gMain.newKeys & 0x80) {
+ if (++ewram0_1.var6dad >= ewram0_1.var6dae) {
+ ewram0_1.var6dad = 0;
+ }
+ return 1;
+ }
+ return 0;
+}