summaryrefslogtreecommitdiff
path: root/engine/routines/townmap_convertlinebreakcharacters.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/routines/townmap_convertlinebreakcharacters.asm')
-rw-r--r--engine/routines/townmap_convertlinebreakcharacters.asm21
1 files changed, 21 insertions, 0 deletions
diff --git a/engine/routines/townmap_convertlinebreakcharacters.asm b/engine/routines/townmap_convertlinebreakcharacters.asm
new file mode 100644
index 000000000..f08b436c9
--- /dev/null
+++ b/engine/routines/townmap_convertlinebreakcharacters.asm
@@ -0,0 +1,21 @@
+TownMap_ConvertLineBreakCharacters: ; 1de2c5
+ ld hl, StringBuffer1
+.loop
+ ld a, [hl]
+ cp "@"
+ jr z, .end
+ cp "%"
+ jr z, .line_break
+ cp "¯"
+ jr z, .line_break
+ inc hl
+ jr .loop
+
+.line_break
+ ld [hl], "<LNBRK>"
+
+.end
+ ld de, StringBuffer1
+ hlcoord 9, 0
+ call PlaceString
+ ret