summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRaúl Peñacoba <raul.mikaop.zelda@gmail.com>2017-08-25 10:33:33 +0200
committerRaúl Peñacoba <raul.mikaop.zelda@gmail.com>2017-08-25 10:33:33 +0200
commitb0919f5410589bf21f0a32f4e6350b687900a476 (patch)
treea76b4578fcf51122d65d021e2e9b28ab3b7c0905 /src
parentf91c42a00d4297f772715896437608bed2a219fe (diff)
sub_80EEC90
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;
+}