You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Fix misnamed character codes
Some character codes were erroneously named after their text command counterparts. This has caused a lot of confusion with naming their functions and with other things. I've also removed the `dict2` macro and expanded the `dict` macro. This really isn't something we should be doing for macros but I can't deny it looks a lot neater than repeated code.
This commit is contained in:
@@ -5,14 +5,14 @@ TownMap_ConvertLineBreakCharacters:
|
||||
cp "@"
|
||||
jr z, .end
|
||||
cp "%"
|
||||
jr z, .line_break
|
||||
jr z, .line_feed
|
||||
cp "¯"
|
||||
jr z, .line_break
|
||||
jr z, .line_feed
|
||||
inc hl
|
||||
jr .loop
|
||||
|
||||
.line_break
|
||||
ld [hl], "<LNBRK>"
|
||||
.line_feed
|
||||
ld [hl], "<LF>"
|
||||
|
||||
.end
|
||||
ld de, wStringBuffer1
|
||||
|
Reference in New Issue
Block a user