summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMateusz Naściszewski <matin1111@wp.pl>2020-12-13 20:30:30 +0100
committerMateusz Naściszewski <matin1111@wp.pl>2020-12-13 20:30:30 +0100
commitb02a392e94e05d98a6c8fa2b20bdca99861c7df8 (patch)
tree77f8dbd111b582ddcc327dcda0bfb178197f14fd /src
parent2c64b5692f3df0c46cfa1610a51cd7de7a0017fc (diff)
Make sub_8011940 more comprehensible
Diffstat (limited to 'src')
-rw-r--r--src/code_80118A4.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/code_80118A4.c b/src/code_80118A4.c
index c05a8db..73cb8b2 100644
--- a/src/code_80118A4.c
+++ b/src/code_80118A4.c
@@ -178,10 +178,7 @@ u32 sub_8011940(u16 r0)
temp = sub_800C068();
if(r0 == 999)
- {
- temp ^= 999;
- return (-temp | temp) >> 31;
- }
+ return temp != 999;
return temp == r0;
}