summaryrefslogtreecommitdiff
path: root/engine/stats_screen.asm
diff options
context:
space:
mode:
authorRemy Oukaour <remy.oukaour@gmail.com>2018-01-16 17:27:50 -0500
committerRemy Oukaour <remy.oukaour@gmail.com>2018-01-16 17:27:50 -0500
commit7b3de85a06e81d14ac0c73e8f9e1ab8e4a474beb (patch)
tree6ffeacd670c9ff66a951550a15a0e990f88ab75d /engine/stats_screen.asm
parent80480821142d7a7b16dd2b1a98a213e7b389af0f (diff)
Avoid "+- 1" at every maskbits
Diffstat (limited to 'engine/stats_screen.asm')
-rwxr-xr-xengine/stats_screen.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/stats_screen.asm b/engine/stats_screen.asm
index a1744c42d..1e3fb8a77 100755
--- a/engine/stats_screen.asm
+++ b/engine/stats_screen.asm
@@ -283,7 +283,7 @@ StatsScreen_GetJoypad: ; 4de2c (13:5e2c)
StatsScreen_JoypadAction: ; 4de54 (13:5e54)
push af
ld a, [wcf64]
- maskbits NUM_STAT_PAGES +- 1
+ maskbits NUM_STAT_PAGES
ld c, a
pop af
bit B_BUTTON_F, a
@@ -512,7 +512,7 @@ StatsScreen_LoadGFX: ; 4dfb6 (13:5fb6)
.ClearBox: ; 4dfda (13:5fda)
ld a, [wcf64]
- maskbits NUM_STAT_PAGES +- 1
+ maskbits NUM_STAT_PAGES
ld c, a
call StatsScreen_LoadPageIndicators
hlcoord 0, 8
@@ -522,7 +522,7 @@ StatsScreen_LoadGFX: ; 4dfb6 (13:5fb6)
.LoadPals: ; 4dfed (13:5fed)
ld a, [wcf64]
- maskbits NUM_STAT_PAGES +- 1
+ maskbits NUM_STAT_PAGES
ld c, a
farcall LoadStatsScreenPals
call DelayFrame
@@ -532,7 +532,7 @@ StatsScreen_LoadGFX: ; 4dfb6 (13:5fb6)
.PageTilemap: ; 4e002 (13:6002)
ld a, [wcf64]
- maskbits NUM_STAT_PAGES +- 1
+ maskbits NUM_STAT_PAGES
dec a
ld hl, .Jumptable
rst JumpTable