From 40b0f9ec364af440643f95eb95576caa84b7c777 Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 9 Jan 2024 17:48:53 -0800 Subject: [PATCH] Account for position of prompt in mode text I forgot that the position of the activity zone can vary based on setactivityposition() in custom levels. So account for that. Additionally, if the activity zone prompt is far down enough, then we don't need to move the mode text at all. --- desktop_version/src/Render.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index aac8130c..f3bedd58 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -2189,10 +2189,10 @@ static void mode_indicator_text(const int alpha) /* Prevent clashing */ y = 20; } - if (game.act_fade > 5 || game.prev_act_fade > 5) + if ((game.act_fade > 5 || game.prev_act_fade > 5) && game.activity_y < 60) { /* Prevent clashing */ - y = 37; + y = game.activity_y + 37; } /* FIXME: Some strings have not yet been translated. In order to not have