summaryrefslogtreecommitdiff
path: root/gfx/mail.asm
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2015-12-18 20:07:09 -0500
committerPikalaxALT <PikalaxALT@gmail.com>2015-12-18 20:07:09 -0500
commit3d36f1a83711f117274c56f3ddb285d81a869bb3 (patch)
tree112183d9ad058507897393f7d489eafe6a53927a /gfx/mail.asm
parentd644406f61983be78339a0e9f366e8d34c209c6c (diff)
Events and some WRAM cleanup
Diffstat (limited to 'gfx/mail.asm')
-rwxr-xr-xgfx/mail.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/gfx/mail.asm b/gfx/mail.asm
index 9ab6fa0d4..cb3c25bc8 100755
--- a/gfx/mail.asm
+++ b/gfx/mail.asm
@@ -694,22 +694,22 @@ MailGFX_GenerateMonochromeTilesColor2: ; b97f8
MailGFX_PlaceMessage: ; b9803
ld bc, MAIL_STRUCT_LENGTH
- ld de, wd002
- ld a, $0
+ ld de, wTempMail
+ ld a, BANK(sPartyMail)
call GetSRAMBank
call CopyBytes
call CloseSRAM
- ld hl, wd002 + sPartyMon1MailAuthor - sPartyMon1Mail
- ld de, wd050
+ ld hl, wTempMailAuthor
+ ld de, wMonOrItemNameBuffer
ld bc, NAME_LENGTH - 1
call CopyBytes
ld a, "@"
- ld [wd002 + sPartyMon1MailAuthor - sPartyMon1Mail], a
- ld [wd050 + NAME_LENGTH - 1], a
- ld de, wd002
+ ld [wTempMailAuthor], a
+ ld [wMonOrItemNameBuffer + NAME_LENGTH - 1], a
+ ld de, wTempMailMessage
hlcoord 2, 7
call PlaceString
- ld de, wd050
+ ld de, wMonOrItemNameBuffer
ld a, [de]
and a
ret z