summaryrefslogtreecommitdiff
path: root/src/berry_blender.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/berry_blender.c')
-rw-r--r--src/berry_blender.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/berry_blender.c b/src/berry_blender.c
index 70cb34809..8d7a7faab 100644
--- a/src/berry_blender.c
+++ b/src/berry_blender.c
@@ -3271,6 +3271,13 @@ void debug_sub_80524BC(void)
SetMainCallback2(sub_8052AF8);
}
+// Partially fixes the clipping on longer names.
+#if DEBUG_TRANSLATE && DEBUG
+# define BLENDER_DEBUG_BERRY_LEN 12
+#else
+# define BLENDER_DEBUG_BERRY_LEN 6
+#endif
+
static void BlenderDebug_PrintBerryData(void)
{
u8 text[128];
@@ -3294,8 +3301,8 @@ static void BlenderDebug_PrintBerryData(void)
else
{
CopyItemName(sBlenderDebug.berries[i] + 133, &text[0]);
- text[6] = CHAR_SPACE;
- text[7] = EOS;
+ text[BLENDER_DEBUG_BERRY_LEN] = CHAR_SPACE;
+ text[BLENDER_DEBUG_BERRY_LEN + 1] = EOS;
}
var = (i * 3) + 3;
Menu_PrintText(text, 2, var);
@@ -3318,7 +3325,7 @@ static void BlenderDebug_PrintBerryData(void)
ConvertIntToDecimalStringN(&text[15], gBerries[sBlenderDebug.berries[i]].smoothness, 2, 2);
text[17] = EOS;
- Menu_PrintText(text, 7, var);
+ Menu_PrintText(text, BLENDER_DEBUG_BERRY_LEN + 1, var);
}
if (sBlenderDebug.pokeblock.color != 0)
{
@@ -3343,7 +3350,7 @@ static void BlenderDebug_PrintBerryData(void)
ConvertIntToHexStringN(&text[15], sBlenderDebug.feel, 2, 2);
text[17] = EOS;
- Menu_PrintText(text, 7, 17);
+ Menu_PrintText(text, BLENDER_DEBUG_BERRY_LEN + 1, 17);
}
}