diff options
author | dannye <corrnondacqb@yahoo.com> | 2015-08-10 23:51:20 -0500 |
---|---|---|
committer | dannye <corrnondacqb@yahoo.com> | 2015-08-10 23:51:20 -0500 |
commit | 4aedff021786dd5c0b81d3a35f505b7aa42adddc (patch) | |
tree | 60955f4e561a16bf75d6d964dcf93a7be839b278 /engine/menu/naming_screen.asm | |
parent | 1df1e9181e2f3d95f57c98e0ea6e38ce4261fb2a (diff) |
Replace hardcoded name lengths with NAME_LENGTH
Diffstat (limited to 'engine/menu/naming_screen.asm')
-rwxr-xr-x | engine/menu/naming_screen.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/menu/naming_screen.asm b/engine/menu/naming_screen.asm index e64a4bee..85111cd6 100755 --- a/engine/menu/naming_screen.asm +++ b/engine/menu/naming_screen.asm @@ -46,7 +46,7 @@ AskName: ; 64eb (1:64eb) ld d, h ld e, l ld hl, wcd6d - ld bc, 11 + ld bc, NAME_LENGTH jp CopyData DoYouWantToNicknameText: ; 0x6557 @@ -67,13 +67,13 @@ DisplayNameRaterScreen: ; 655c (1:655c) cp "@" jr z, .playerCancelled ld hl, wPartyMonNicks - ld bc, 11 + ld bc, NAME_LENGTH ld a, [wWhichPokemon] call AddNTimes ld e, l ld d, h ld hl, wBuffer - ld bc, 11 + ld bc, NAME_LENGTH call CopyData and a ret @@ -158,7 +158,7 @@ DisplayNamingScreen: ; 6596 (1:6596) .submitNickname pop de ld hl, wcf4b - ld bc, 11 + ld bc, NAME_LENGTH call CopyData call GBPalWhiteOutWithDelay3 call ClearScreen |